Yeah it works, but I loose my ability to have a SEF URL...
On menu linked articles, I get a URL like http://www.mysite.co.uk/services/content_mangement.html
whereas, why I link the text to another article I get http://www.mysite.co.uk/services/3.html
- can you see why I am not happy with this...
There must be an answer to this....
Very interesting and really important feature: linking to content items. First time I faced this problem 7 years ago, developing my own specialized (distance learning) web application, that had content publishing features (so in fact, it was CMS :) )...
I came to the conclusion, that this links between Articles ('content items'...) should be dynamic
So, I think, that best and universal approach is something like 'special type of BBCodes' inserted into Articles and converted to Hyperlinks on the fly.
There may be three variants, referring to Articles by:
1. id, e.g. [contentid=3]Content management[/contentid]
2. alias, e.g. [contentalias=content_mangement]Content management[/contentalias]
(I copied your alias, that is mistyped ;))
3. article title, e.g. [contenttitle]Content management[/contenttitle].
Joomla has built-in ability to construct URLs to Articles, according to the current
site settings: so dynamically created links would be just the same, as links, created (also dynamically) for e.g. "Latest news" (from modules\mod_latestnews\helper.php file):
$lists[$i]->link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catslug, $row->sectionid));
And the last point: There is already such BBCode plugin, that may be extended to process this Joomla!-specific BBCodes: yvBBCode
What, pals, do you think about this? Maybe some corrections/additions to my proposal?
Text of all my messages is available under the terms of the GNU Free Documentation License: http://www.gnu.org/copyleft/fdl.html