When tweet is posted and I click to the link, the login page is returned!
Answer
First: Check, if the article, section, category and menu are set to public access. (If not, the user has to login.)
The problem:
If everything is configured for public access and the login page appears, you have probably posted an article without section/category (uncategorised) or the section/category of the article is not assigned to a menu item. AutoTweet does workarounds for most of this (also for uncategoriesed) articles, but in some cases (i.g. when you use SEF support) there is no way to handle this.
In this case you have to deal with the following Joomla problem:
- The Joomla content component is building the urls based on the menu/site structure (items, itemid).
- Each valid url must be reachable over the site structure/menu structure (and therefore have a correct itemid).
- So an article without section/category or with a section/category which is not assigned to a menu item doesn't have a valid url.
- Of course in some cases you can find a url to reach the article. But this url won't work in all cases and with all components/extensions. So you will get serious trouble with other parts of Joomla and especially with SEF.
That is the reason why AutoTweet in this cases returns an url with invalid itemid, so the login page appears. (The itemid is the id of the menu item for new articles and this menu item is only accessible for logged in users.) This is normal Joomla behavior and not a problem of AutoTweet (For most of this cases AutoTweet can handle this!).
Workaround:
If you get the login page and you want to post articles without a (visible) menu assignment there is a way to do this with Joomla and correct urls. This solution also works for AutoTweet.
- Login to the admin backend as admin.
- Go to the section manager and create a dummy section for the articles (i.g. 'Articles Sec').
- Go to the Category Manager and create a dummy category (i.g. 'Articles Cat') and assign this category to the created section 'Articles'.
- Dont' forget to set section and category to 'published' and 'public access'.
- Go to the Menu Manager and create a hidden menu (i.g. 'Hidden Menu'). A hidden menu is a menu without an assigned module, so leave the field 'Module Title' blank. A hidden menu is not visible on the site, so you can get a valid itemid for the urls without a visible menu entry. --> see image 1
- Go to the menu item manager for this menu and create a new entry with type 'Article/Category List Layout' (i.g. 'Article List'). --> see image 2
- Assign the created category ('Articles Sec/Articles Cat') in the options to this entry. --> see image 3
- Don't forget to set the menu entry to 'published' and 'public access'.
- Now you can choose this category when you post new articles and the articles will have correct urls (and AutoTweet posts theese urls).
Feel free to contact me if you have questions or suggestions about this.
Image 1:

Image 2:

Image 3:





