The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
Q: Multivelel URLs / Hiding part of the FancyURL - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: Q: Multivelel URLs / Hiding part of the FancyURL (/showthread.php?tid=2383)



Q: Multivelel URLs / Hiding part of the FancyURL - mrmut - 2011-11-13

Hello.

I have previously added FancyURLs to my test site, however I noticed that it doesn't output full slug path in the address bar as URL. To explain:

Instead:

Code:
http://site.tdl/products/product-subcategory/best-product-ever.html

it gives:

Code:
http://site.tdl/product-subcategory/best-product-ever.html

- that is, it outputs oly the immediate parent.

Is there some %grandparent% and %grandgrandparent% option for URL formation? :-)

*******

Second question is regarding start page.

The site structure is designed as:

site.tdl
- cat1
- cat2
- subcat1
- subcat2
- subsubcat1
- subsubcat2
- subsubcat3
- subcat3
- subcat4
- caT3
- cat4

The problem is that because of %parent% rule, CMS outputs "index" when at that immediate sublevel:

Code:
http://site.tdl/index/cat1.html

Would it be possible to hide only that "index" in .htaccess, or maybe rename "index" slug into something else?

Thanks.


(This structure is necessary because of the end users.)


Q: Multivelel URLs / Hiding part of the FancyURL - Connie - 2011-11-13

The "index" is a know point, there was already some discussion

about parent/parent/child-slug, do a search, if I remember well there have been some hints on that as well

Cheers, Connie


Q: Multivelel URLs / Hiding part of the FancyURL - mrmut - 2011-11-14

Connie Wrote:The "index" is a know point, there was already some discussion

about parent/parent/child-slug, do a search, if I remember well there have been some hints on that as well

Cheers, Connie

Thanks.

I did solved the "index" problem, but I couldn't find working "parent/parent/etc/page" fix - any help with it?




***



Index fix:

Carlos Wrote:Anyway here's a patch: edit /admin/inc/basic.php, at the beginning of function find_url(), line 349, insert:
Code:
if ($parent=='index') $parent='';

@ http://get-simple.info/forum/post/19671/#p19671