Mark, could you navigate me, how to create an entry’s permalink? I’m trying various things, but without any elegant solution. Is it using elements only way?
BTW: this mod completely changed my point of view on EE flexibility. It’s most useful EE mod/plug I’ve ever found. Honestly, great work!
Mark, here is the real problem, which I need resolve. I want using a special characters in the category names. Because my web will be in Slovak language, I want to have category e.g. “Tiráž”. Your Pages module convert special slovak characters á, ž and create friendly URL: /tir/. But, of course, I want to get url /tiraz/. It means, I need to convert á like a and ž like z etc.
How to modify your Pages module and convert approx. 10 special characters to URL friendly shape?
Iam trying put:
$category['cat_description'] = iconv("utf-8", "us-ascii//TRANSLIT", $category['cat_name']);
before part:
$category['cat_description'] = strtolower(
preg_replace(
array("/(?:^[^a-zA-Z0-9_-]+|[^a-zA-Z0-9_-]+$)/", "/[^a-zA-Z0-9_-]+/"),
array("", "-"),
$category['cat_name']
)
);
But it doesn’t work.
Hi Gabriel,
Take a look in the comment here: http://au3.php.net/manual/en/function.strtr.php
In the comments a user has provided a function, win2ascii(), which looks like it will solve your problem.
If you include that function (perhaps in path.php) then you can modify the Pages module like so:
$category['cat_description'] = win2ascii($category['cat_description']);
And it should produce the result you’re after.
Sorry to repost, but still wondering if it’s possible to check the status before displaying items in the static_page_path output?
Currently, changing the status of a ‘section’ to closed does not remove it from my menu (the page itself is disabled, yet it still appears in my menu).
Any ideas?
@james - I would recommend using the new to EE 1.6 Pages module over the newly renamed Tome module. There you can define whatever separator you need.
http://expressionengine.com/knowledge_base/article/pages_module_conflict/
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.