This project is read-only.

Connector wrapped in zone...

Jul 3, 2011 at 6:05 PM
Edited Jul 3, 2011 at 6:27 PM
Hi Pete
Used the Mechanics and Paperclip for some related data.
Works fine but I ran into a problem.

The following is a rendered connector.
It is all right but I actually need li not div
Yes I can override specific template but because the block is wrapped in a zone div
I simply don't know how to put <ul><li> layout instead of current one

<h2 shape-id="39">Articles</h2> <div class="zone zone-connectors" shape-id="40"> <div class="view-connector page-for-artcle" shape-id="41"> <div class="view-connector page-for-artcle" shape-id="48"> <div class="view-connector page-for-artcle" shape-id="55"> <div class="view-connector page-for-artcle" shape-id="62"> <div class="view-connector page-for-artcle" shape-id="69"> </div>

to be clearer I need this way


<h2 shape-id="39">Articles</h2> <div class="zone zone-connectors" shape-id="40">
<ul>
<li class="view-connector page-for-artcle" shape-id="41"> <li class="view-connector page-for-artcle" shape-id="48"> <li class="view-connector page-for-artcle" shape-id="55"> <li class="view-connector page-for-artcle" shape-id="62"> <li class="view-connector page-for-artcle" shape-id="69">
</ul>
 </div>

but after reimplementing the template get this one

<h2 shape-id="39">Articles</h2>
<ul>  <div class="zone zone-connectors" shape-id="40">
<li class="view-connector page-for-artcle" shape-id="41"> <li class="view-connector page-for-artcle" shape-id="48"> <li class="view-connector page-for-artcle" shape-id="55"> <li class="view-connector page-for-artcle" shape-id="62"> <li class="view-connector page-for-artcle" shape-id="69">
 </div>
</ul>  
In result UL is cut by <div class="zone zone-connectors" shape-id="40">

Is there any possibility to fix it ?
will greatly appreciate your help
div 
Jul 3, 2011 at 7:04 PM

Hurray found it - I can override the Zone.

Anyway thank you for your really great work. 

Jul 5, 2011 at 1:37 PM

Hi Larry,

You can also look at the Cartography module for an example of how I created the <ul><li> list for the menu by overriding various templates for sockets, connectors, etc. (by using a different DisplayType).

I still need to work a bit on making it easy to customise (and slim down) the HTML output, and just providing some documentation on how to do this.

Jul 9, 2011 at 4:37 PM

yep I succeeded  just great.