Jump to content

digitalbricks

Members
  • Posts

    14
  • Joined

  • Last visited

Contact Methods

  • Website URL
    https://www.andreherdling.de/

Profile Information

  • Location
    Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

digitalbricks's Achievements

Jr. Member

Jr. Member (3/6)

5

Reputation

  1. Hello community, in order to prevent the output of a paginated page – when there are no items for the given page number – i always used a 404 exception based on Ryans recommendation. Such as if($input->pageNum>1 AND !count($stores)){ throw new Wire404Exception(); } That worked well in the past. But in a current project throw new Wire404Exception() and also wire404() are both causing an infinite redirect loop. Having a look in the network inspector, i saw that there are ping-ponged redirects from e.g. from /page2 to /page2/ to /page2 to /page2/ and so on. Essentially rediects between the page WITH and WITHOUT a trailing slash. Fiddling around i found that this is caused by the trainling slash setting of the page template: This infinite redirect only happens if a trailing slash on the page number url segment is enforced – if the setting is "doesn't matter" than the 404 works as expected again. I really like to enforce the trailing slash but this seems to break the 404 exception handling. Did I oversee something?
  2. I know: I am late to the party – but i have a question to the initial post of @ryan (see quote above): In a current project I want to display the comments list one a cached page (ProCache) and the comments form on another, uncached page. Unless teasered in the above quote, I didn't find an option in renderForm() to configure this usecase (posting comments to another page) – or maybe i am looking on the wrong place. So, does anybody know how to set this up and could give me a hint in the right direction?
  3. Good question! I am also interested in Personal / Single edition of ProMailer only for usage on my own site. My clients are happy with their existing mailing solutions but I like the ideal of a mailing module directly integrated into my PW site. So it would be great to have the option of purchasing a personal edition of ProMailer!
×
×
  • Create New...