SimplePortal

Support => English Support => Topic started by: accludetuner on October 10, 2011, 07:48:01 PM

Title: Advanced Display for Custom Block
Post by: accludetuner on October 10, 2011, 07:48:01 PM
I almost feel bad for asking for help on such a simple issue but I can't figure it out.

I have SMFwiki installed and simpleportal displaying a left column on all pages of the site, including the wiki pages.  I want to display a custom html block only on the wiki pages. I created the block, gave view permissions to all usergroups, and I seem to be having issues with the custom display options.

Site is in the   domainroot.com/main/   directory. The wiki loads from the   domainroot.com/main/index.php?action=wiki   url which then gets redirected to  domainroot.com/main/wiki/page=Main_Page  due to SEO friendly links but that is also equivalent to   domainroot.com/main/index.php?action=wiki;page=Main_Page.  All pages in the wiki get converted to the  /main/wiki/page=   format, but they are equivalent to   /main/index.php?action=wiki;page=   

Here's what I've tried and none of these seemed to work.

~index.php?action=|wiki
~/index.php?action=|wiki
~../index.php?action=|wiki
~main/index.php?action=|wiki
~/main/index.php?action=|wiki
~../main/index.php?action=|wiki
~domainroot/main/index.php?action=|wiki
~http://domainroot/main/index.php?action=|wiki
~index.php?action=wiki;page=*
~/index.php?action=wiki;page=*
~../index.php?action=wiki;page=*
~main/index.php?action=wiki;page=*
~/main/index.php?action=wiki;page=*
~../main/index.php?action=wiki;page=*
~domainroot/main/index.php?action=wiki;page=*
~http://domainroot/main/index.php?action=wiki;page=*


What am I doing wrong?
Title: Re: Advanced Display for Custom Block
Post by: ccbtimewiz on October 11, 2011, 03:01:49 AM
Have you tried:

index.php?action=wiki
Title: Re: Advanced Display for Custom Block
Post by: [SiNaN] on October 11, 2011, 03:09:17 AM
If you have action=wiki in the URL, these should work:

Code: [Select]
wiki
Code: [Select]
~action|wiki
If you only have page= in the URL, this is the best you can do with 2.3.3:

Code: [Select]
~page
2.3.4 supports PHP expressions too. So it would be a lot easier when it's out.
Title: Re: Advanced Display for Custom Block
Post by: accludetuner on October 11, 2011, 03:33:00 AM
Code: [Select]
~action|wiki
Worked!

Thank you!
Title: Re: Advanced Display for Custom Block
Post by: andy on March 28, 2012, 03:12:12 AM
Ive always had trouble with this and the help page is completely useless to anyone new ... far from 'simple'.

I went through the same steps as this person until ... utter frustration.

Quote
This symbol acts as a wildcard, allowing you to include dynamic actions like ../index.php?issue=* or ../index.php?game=*. Used as ~action

A real / complete example is needed on the popup help page.
Title: Re: Advanced Display for Custom Block
Post by: [SiNaN] on March 28, 2012, 07:34:21 AM
Well, I think we did our best with the help pop-up and people can ask here whatever they couldn't figure out. If you have case where you couldn't find the right display option, let me know. I don't think there is any case that our advanced custom display options can't handle.
Title: Re: Advanced Display for Custom Block
Post by: andy on March 28, 2012, 02:21:41 PM
Ok Spok ... I only just got the hang of it and 3 posts up even 'Hero Member' got it wrong recently (on nearly 2000 posts).
Looks like a universtity entrance exam text for Vulcans!

I will have a look at the wording and see if I can get it to look understandable for non-boulean brains.
SimplePortal 2.3.8 © 2008-2024, SimplePortal