Category Blog layout => readmore link => URL

155 views
Skip to first unread message

Ark Media

unread,
Dec 14, 2010, 11:57:06 AM12/14/10
to Joomla! General Development, dkr...@arkmediagrp.com
I need to know how to to get rid of the article ID in the URL of the
readmore link from the category blog layout. I don't know if that
makes sense but basically I need

this URL: index.php/home/108-whats-new-3.html

to be this URL: index.php/home/whats-new-3.html

I need this so that I can apply a different template to the article
than what is applied to home page that it is being linked from. I
created a menu item with the alias "whats-new-3" and an article with
the same alias. I believe if I can get rid of the article id in the
URL that I will be able to apply a template to this menu item.

I am on version 1.5.22. I believe this edit it made in the components/
com_content/helpers/route.php file, but I am not a PHP expert.

Also if anyone knows a better way to achieve this goal I am open to
suggestions!

Matt Thomas

unread,
Dec 14, 2010, 12:13:24 PM12/14/10
to joomla-de...@googlegroups.com
Hi,

One solution may be to create a "hidden menu" with an article layout item that points to that article. You can then assign a template to that menu item. I think this forum post may help you: http://forum.joomla.org/viewtopic.php?f=428&t=280074

Another solution might to use a plugin which loads templates based on criteria such as article or item ID.

No matter who you solve this, please don't alter core files as they may get changed during an upgrade.


Best,

Matt Thomas
betweenbrain | Construct Template Framework | Sub-Templates Explained




--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.


Reply all
Reply to author
Forward
0 new messages