Hi Swedie
If you’re in the context of a channel:entries loop you can just use the {path} tag inside the {categories} tag pair. So something like this would work:
{exp:channel:entries channel="articles"}
Title: {title}
Categories: {categories}<a href="http://{path=articles}">{category_name}</a>{/categories}
{/exp:channel:entries}So if your “Category URL Indicator” was set to “cat” the URL above would end up something like “/index.php/articles/cat/category_url_title”
Thanks again.
While you are at it.
What’s the function to automatically get the fuill URL to the current entry? I mean, I am listing all my news, and the title should be linking to a page where I show the full news body.
Is it something like {path='name of entry'} ? tried, but no worky.
What’s the function to automatically get the fuill URL to the current entry? I mean, I am listing all my news, and the title should be linking to a page where I show the full news body.
ExpressionEngine allows you to use a variety of “indicators” in the URL for a given entry. Here are a few options:
http://ellislab.com/expressionengine/user-guide/modules/channel/variables.html#var_entry_id_path http://ellislab.com/expressionengine/user-guide/modules/channel/variables.html#var_permalink http://ellislab.com/expressionengine/user-guide/modules/channel/variables.html#var_title_permalink http://ellislab.com/expressionengine/user-guide/modules/channel/variables.html#var_url_title_path
As long as I’ve been using EE I’ve never understood the difference between the last two links. I’ve used {title_permalink=''} for years and never opted for an alternative.
Another quetion. I have turned off to use index.php through both the config.php file and having the .htaccess file. But the CMS itself still adds index.php everywhere. For example the pagination function and “View” template etc. What have I missed?
If you go to Admin > General Configuration what does the Name of your site’s index page field have for a value?
What’s the function to automatically get the fuill URL to the current entry? I mean, I am listing all my news, and the title should be linking to a page where I show the full news body.ExpressionEngine allows you to use a variety of “indicators” in the URL for a given entry. Here are a few options: http://ellislab.com/expressionengine/user-guide/modules/channel/variables.html#var_entry_id_path http://ellislab.com/expressionengine/user-guide/modules/channel/variables.html#var_permalink http://ellislab.com/expressionengine/user-guide/modules/channel/variables.html#var_title_permalink http://ellislab.com/expressionengine/user-guide/modules/channel/variables.html#var_url_title_path As long as I’ve been using EE I’ve never understood the difference between the last two links. I’ve used {title_permalink=''} for years and never opted for an alternative.
It doesn’t appear as if it helps out creating the channel and category. Only makes a full URL where site URL and entry short title is combined. You still have to type manually (or code) the channel and category.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.