Jump to content

matjazp

Members
  • Posts

    687
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by matjazp

  1. I would like that all PW modules/function/methods be aware of possibility to use IDs instead of urls. Let say I have page with title Test (url=test, id=1000) and two children: Foo (url=foo, id=1001) and Bar (url=bar, id=1002). echo $page->children->render(); produces something like: <ul> <li><a href="/foo/">Foo</a></li> <li><a href="/bar/">Bar</a></li> </ul> What I would like is that echo $page->children->render(); creates this: <ul> <li><a href="/1001/">Foo</a></li> <li><a href="/1002/">Bar</a></li> </ul> Your module just add an option to use ID on specific templates/pages (and that is great) but I have to write my own method/function to display ID's, because render() will always echo page url and not page ID. I hope I made myself clear (English is not my native language).
  2. Thx, Adrian, but this will not work when using $page->children->render() or renderPager() (and a lot of others I assume) since they use page->url to generate the markup instead page->id ...
  3. How to make PW use IDs instead of slugs in general, like all pages? Or just on some pages (user choice)?
  4. Is ProCache supported on windows server with IIS?
  5. Hi, I'm new here and have a question. I've tested HiddenAdminPages.module from somatonic but it would be nice to have similar module for roles instead for users. I have just some basic knowledge of php (trying my best) and don't know how to do it. Matjaž EDIT: I got it, can send the code if someone is interested.
×
×
  • Create New...