PDA

View Full Version : Fragment Separator and positioning


namunday
29-Dec-2004, 08:58 PM
What is the template that creates the separators between fragments and if it is the product separator how do i use a custom property to use it between some products but not others.

Also, is it possible to place fragments between sections. I would like to break up some of my pages that list subsections but including fragamnts between them but the fragments always go to the bottom

namunday
30-Dec-2004, 12:52 AM
I have established the the product separator does not dictate the fragment separator but cannot find anything like Act_fragmentseparator

NormanRouxel
30-Dec-2004, 01:45 AM
What is the template that creates the separators between fragments

There isn't a fragment separator. Each fragment template starts a new table row containing that fragment.

You could create one by making a new Fragment Template e.g. Act_FragmentSeparator.html <!-- HR Fragment Separator begin -->

<tr>
<td colspan="3" valign="top">
<!-- NETQUOTEVAR:FRAGMENTANCHOR NETQUOTEVAR:BROCHURE_TEXT -->
<hr>
</td>
</tr>

<!-- HR Fragment Separator end -->

If you edit BrochureTemplates.ini and add the line (below [Templates])

Act_FragmentSeparator.html=Brochure HR Separator

then this will show up in the drop-down list of fragment templates.

If you'd like to use Customvars then just replace the <hr> above with CUSTOMVAR:WHATEVER.

namunday
30-Dec-2004, 12:55 PM
Norman,

at the moment, a hr width=90% is being created between fragments and i want there to be nothing (or at least use a black customvar). I have been able to do this with the productseparator fine and i understand most of what you are saying but would like to clarify soemthing.

actinic automatically knows of the productseparator template, how do i make it acknowledge a brochureseparator template or are you saying that i need to create a new fragment within actinic product section to be used solely as a separator. If this is the case how do i remove the hr width=90% that it is creating automatically.

Univiz
30-Dec-2004, 01:05 PM
hello namunday

If you comment out the fragment anchor in the fragment template/s you are using the horizontal line will not appear

<!-- NETQUOTEVAR:FRAGMENTANCHOR -->

HTH
Regards, Sharon

globefox
18-Jan-2006, 02:19 PM
I think that rather than comment out NETQUOTEVAR:FRAGMENTANCHOR (which could impact the display of seaarch results), or create a new fiddly template, what both myself and the originator of this thread would like to do is would be edit NETQUOTEVAR:FRAGMENTANCHOR.

Replacing the HR with an image would be great.


any ideas?
Lucy

Bruce
23-Jan-2006, 02:45 PM
Lucy,

I have asked Development if there is a way to be able to do this. Will keep you posted on what they have to say.

Kind regards,

Bruce
24-Jan-2006, 04:25 PM
Lucy,

The <HR> is defined in Design | Text Phase -1, ID 2282.

To make it conditional will require JavaScript.
- Set Design | Text Phase -1, ID 2282 to an empty string.
- Create a CUSTOMVAR called, for example, Separator.

Insert the following into the Fragment templates before NETQUOTEVAR:FRAGMENTANCHOR...

<script>
<!--
document.write("CUSTOMVAR::SEPARATOR")
//-->

The CUSTOMVAR Separator can now be defined at the catalog level to set the default for the site. The default can be overridden at the section level.

Hope this helps,

Kind regards,

Coggy
24-Jan-2006, 05:23 PM
Bruce,

Am I correct in thinking that the JavaScript is only required in order to override the blanked out Text Phase? I, too, would like to remove the <HR> tag from a fragment, only I've removed the <HR> from Text Phase -1, ID 2282, but this has had no affect. Do I need to complete the other step, as I do not need to use the <HR> tag?

Thanks,

Chris

Bruce
26-Jan-2006, 09:11 AM
You need not do any thing else other than blank out the Phase ID.

DarrenSpink
08-Feb-2006, 04:03 PM
Just coming back to this one, I can't remove the <hr> from below the fragment. Ive blanked out the <HR> in the phase id and its not removed the line. Looking at the code if I preview the page I have

<HR SIZE="1" ALIGN="CENTER WIDTH="500">

I've done a search in design text and can't find this anywhere, can someone help.

Darren

Coggy
09-Feb-2006, 11:38 AM
I'm also having the same problem - only a small problem, but SO annoying!! Would really appreciate a solution to this too, as its driving me mad!!

Chris

DarrenSpink
09-Feb-2006, 10:53 PM
can someone from support help us three ?

Krithika
10-Feb-2006, 02:39 PM
Hi there

For clarification, are you referring to the product separator that appears between the last fragment and the first product on the products page ? If yes, then this separator is being brought in by NETQUOTEVAR:INCLUDE Act_ProductSeparator.html in the Product Line template. The <HR> in Design | Text removes the separator dividing the fragments from each other while the one dividing the fragment from the subsequent product on the page is being introduced by the above netquotevar.

Removing this completely will remove all the dividing lines between the products. To avoid this, you can simply move this line to appear just after NETQUOTEVAR:PRODUCTFORMEND at the end of the product line template. I have attached a screen grab to illustrate this.

If this doesn't help, could you please post a URL or screen grab so we can understand the issue better ?

Guy C
21-Feb-2006, 01:42 AM
Also, is it possible to place fragments between sections. I would like to break up some of my pages that list subsections but including fragamnts between them but the fragments always go to the bottom

I have noticed in the replies above that everyone is focusing on the first query raised however I was wondering if anyone knows of a way of performing the above task.

I basically have a similar problem where i have a bunch of products in subsections and i want to break them up on a page by placing a header above each different group. I thought this would be possible through the use of fragments but i can't get them to go anywhere apart from at the top or bottom of a page. I need them in various locations throughout the page, thus splitting up the different products into sections with a header.

Any help would be amazing...

wjcampbe
21-Feb-2006, 08:11 AM
@Guy,

Unfortunately the section list is just that, a contiguous list. It can be moved as a list to the top, or the bottom, but not split into segments.

However, you CAN get the effect you want if you mark Location and Arrangement of Section List as NONE, then create your own Section Links in Fragments. This way you could have fragment with one or two Section Links, followed by text fragment, followed by Link fregament ....