We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Pages Bug Thread

Development and Programming

Gabriel's avatar
Gabriel
130 posts
18 years ago
Gabriel's avatar Gabriel

Mark: Uh, you’re right! I was blind and wrong, I’ve changed {entry_id} with {static_page}. Thank you!

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

glad to hear it Gabriel

       
Gabriel's avatar
Gabriel
130 posts
18 years ago
Gabriel's avatar Gabriel

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 Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

we’ll if your page is About » Client Work then the url would simply be about/client_work. There’s no need for it to be generated. Where/how are you trying to generate these links?

       
Gabriel's avatar
Gabriel
130 posts
18 years ago
Gabriel's avatar Gabriel

Mark, don’t care about my blindness. I’m discovered url_title tag 😊

       
Gabriel's avatar
Gabriel
130 posts
18 years ago
Gabriel's avatar Gabriel

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.

       
Sam C's avatar
Sam C
16 posts
18 years ago
Sam C's avatar Sam C

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.

       
ira42's avatar
ira42
167 posts
18 years ago
ira42's avatar ira42

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?

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

Unfortunately in the current version this is not possible. You may be able to do it with PHP and parsing set to output, but even that would take a quite a bit of coding and a large hit to server resources.

       
ira42's avatar
ira42
167 posts
18 years ago
ira42's avatar ira42

Ok, was worth asking. Thanks again, Mark.

Ira

       
james Brown's avatar
james Brown
492 posts
18 years ago
james Brown's avatar james Brown

Mark, as always your work is working quite well. One question though, how do I change the separator? It seems maybe that _ is hard coded? because it isn’t obeying my setting of using - as the default. How can I go about changing it to use - as the separator?

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

@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/

       
james Brown's avatar
james Brown
492 posts
18 years ago
james Brown's avatar james Brown

oh ok. unfortunately us mortals have not received 1.6 yet. Hopefully it will be here soon.

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
18 years ago
Ingmar Greil's avatar Ingmar Greil

It’s been available for download for a few hours now. Go get it while it’s fresh.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

Indeed, it’s certainly worth upgrading to!

       
1 2 3 4 5 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.