View Full Version : Hidden Sections
JimboS
24-May-2005, 07:31 PM
I am trying to hide certain sections online from non registered customers.
I have made a new section link layout as below
=======================
<Actinic:SHOWFORPRICESCHEDULE Schedules="6" HTML="<
A HREF=NETQUOTEVAR:SECTIONLINK>NETQUOTEVAR:SECTIONNAME</
A>"/>
<!-- NETQUOTEVAR:SECTIONIMAGE NETQUOTEVAR:SECTIONTEXT -->
NETQUOTEVAR:NEXT
========================
This hides the section 'test' from retail customers, but when I log-in I see the page as attached.
What I want is the the section test to now appear in the same way as all the others at the bottom of the list (e.g. Account Application)
Any sugestions?
JimboS
25-May-2005, 12:47 PM
I have now changed the page so that the code reads:
<!-- SectionLine HTML begin -->
<!-- Insert HTML for the beginning of a section title -->
<DIV ALIGN="LEFT">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="10">
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<Actinic:SHOWFORPRICESCHEDULE Schedules="6" <A HREF=NETQUOTEVAR:SECTIONLINK>NETQUOTEVAR:SECTIONIMAGE</A>
</TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE">
<Actinic:SHOWFORPRICESCHEDULE Schedules="6" HTML="<A HREF=NETQUOTEVAR:SECTIONLINK><B>NETQUOTEVAR:SECTIONNAME</B></A>">
<br><span class="actxsmall">NETQUOTEVAR:SECTIONTEXT</span>
</TD>
</TR>
</TABLE>
</DIV>
NETQUOTEVAR:NEXT
<!-- Insert HTML for the end of a section title -->
<!-- SectionLine HTML end -->
This almost works
When logged in all is visible as it should be - execpt the section image is not clickable.
When not logged in the section title is not visible, but the image is?
Any help
JimboS
26-May-2005, 05:57 AM
I hate to beg, but I'm desperate here - any help please
Nadeem
26-May-2005, 04:32 PM
Hi there
Just to let you know, I am testing out what you have written, and checking it.
Kind Regards
JimboS
01-Jun-2005, 12:12 PM
Any joy with this Nadeem?
Nadeem
01-Jun-2005, 01:30 PM
Hi James
Here is a working sample in the advance user guide:
<Actinic:SHOWFORPRICESCHEDULE Schedules="2" HTML="<A HREF=NETQUOTEVAR:SECTIONLINK>NETQUOTEVAR:SECTIONNAME</A>"/>
Looking at your code:
<Actinic:SHOWFORPRICESCHEDULE Schedules="6" <A HREF=NETQUOTEVAR:SECTIONLINK>NETQUOTEVAR:SECTIONIMAGE</A>
</TD>
This is wrong, there should be no second "<A HREF", instead "HTML="<A HREF"
Please check this
Kind Regards
JimboS
01-Jun-2005, 08:09 PM
<!-- SectionLine HTML begin -->
<!-- Insert HTML for the beginning of a section title -->
<DIV ALIGN="LEFT">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="10">
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<Actinic:SHOWFORPRICESCHEDULE Schedules="6" HTML="<A HREF=NETQUOTEVAR:SECTIONLINK>NETQUOTEVAR:SECTIONIMAGE</A>"/>
</TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE">
<Actinic:SHOWFORPRICESCHEDULE Schedules="6" HTML="<A HREF=NETQUOTEVAR:SECTIONLINK><B>NETQUOTEVAR:SECTIONNAME</B></A>">
<br><span class="actxsmall">NETQUOTEVAR:SECTIONTEXT</span>
</TD>
</TR>
</TABLE>
</DIV>
NETQUOTEVAR:NEXT
<!-- Insert HTML for the end of a section title -->
<!-- SectionLine HTML end -->
This is the full code I have now. What you see here is a "/> when not logged in, but when you log in the section image is not visible but the text label is.
Is this a problem with trying to get both the section image and section text invisible when not logged in but visible when loggin in?
James
bentleybloke
01-Jun-2005, 09:48 PM
Not sure if I'm right, but have a go with this:
<!-- SectionLine HTML begin -->
<!-- Insert HTML for the beginning of a section title -->
<DIV ALIGN="LEFT">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="10">
<TR>
<TD ALIGN="LEFT" VALIGN="TOP"> <Actinic:SHOWFORPRICESCHEDULE Schedules="6" HTML="<A HREF=NETQUOTEVAR:SECTIONLINK>NETQUOTEVAR:SECTIONIMAGE</A>"/>
</TD>
<TD ALIGN="LEFT" VALIGN="MIDDLE"> <Actinic:SHOWFORPRICESCHEDULE Schedules="6" HTML="<A HREF=NETQUOTEVAR:SECTIONLINK><B>NETQUOTEVAR:SECTIONNAME</B></A><br><span class="actxsmall">NETQUOTEVAR:SECTIONTEXT</span>"/>
</TD>
</TR>
</TABLE>
</DIV>
NETQUOTEVAR:NEXT
<!-- Insert HTML for the end of a section title -->
JimboS
02-Jun-2005, 08:27 PM
Exactly the same result:
The problem appears to be with the line:
<Actinic:SHOWFORPRICESCHEDULE Schedules="6" HTML="<A HREF=NETQUOTEVAR:SECTIONLINK>NETQUOTEVAR:SECTIONIMAGE</A>"/>
As you see the "/> at the end not the section image
cdicken
03-Jun-2005, 09:03 AM
THe issue is that NETQUOTEVAR:SECTIONIMAGE brings in content from Act_SectionNavImage.html - which includes quote marks, which breaks the HTML tag.
Try editing this template and replace all the double quotes with single quotes.
JimboS
05-Jun-2005, 08:11 PM
Thats works now - next question - how do I make a section visible to more than one price group?
At the moment is shows for price schedule 6
<Actinic:SHOWFORPRICESCHEDULE Schedules="6" HTML
What do i do if I want it visible to schedule 6,2 & 4
cdicken
06-Jun-2005, 09:29 AM
Just put the numbers in the
Schedules="6"
section of the tag, separated by commas.
Schedules="2,4,6"
JimboS
06-Jun-2005, 07:33 PM
Working a treat now
Thanks all for the help
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.