After spening two nights on this subject...
I am composing an item at the backend,
Acces level --> Public. I store it in an Category with acces level = public. This category is in a section with access level: public.
BUT: at the front-end the item is published and after the Introduction Text there's a link: Read more...
The accompanying link ends with:
index.php?option=content&task=view&id=5&Itemid
=2
But on my case link that belongs with Read more.. ends without the
2
So the unregistered visitor at my site is not directed to the read more page but sees a page that says: You are not autorized. Please log in.
What did work was let the article written by a person (with the autorisation Author) from the front-end using the link Submit News, then I approved the article at the backend as Administrator, then all works wel. But then the article is placed in the wrong section... content is OK, the Read more link works. But it is not the way it should be.
Where to look for a line of code that supposed to add $ItemID to the url that goes with Read more...
Is line 207 from content.html.php a good start?
There is a function show(...)
with in line 237
PHP Code:
$link_on = sefRelToAbs("index.php?option=content&task=view&id=".$row->id."&Itemid=".$_Itemid);
I think it is here that $_Itemid is empty where it should contain a 2.
But why is it empty in one case and is it not empty in that another section?
Is this a database mismatch?