Content Blocks Separtors

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
kanate
Forum Members
Forum Members
Posts: 10
Joined: Thu Oct 25, 2007 6:04 pm

Content Blocks Separtors

Post by kanate »

Is there a way to add seperator to the template? so that in admin when you edit the page there'd be separators to separate the group of blocks?

Sometime my template has 10+ blocks and it's getting very confusing for clients.
for example, slideshow on homepage, on each slide, there's title, slidetext and slideimage. If there're 3 slides, the page edit would have it like this
[slide 1 title]
[slide 1 text]
[slide 1 image]
[slide 2 title]
[slide 2 text]
[slide 2 image]
[slide 3 title]
[slide 3 text]
[slide 3 image]

It would be great if I could add seperators so it's showing
[slide 1 title]
[slide 1 text]
[slide 1 image]
-----------------
[slide 2 title]
[slide 2 text]
[slide 2 image]
-----------------
[slide 3 title]
[slide 3 text]
[slide 3 image]
-----------------
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Content Blocks Separtors

Post by Wishbone »

You should be able to separate your blocks any way that is valid HTML. Add a , add 's with borders, etc.. Maybe I'm not understanding your question. Maybe a link to the page, and a code snippet from the relevant part of your template would help.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Content Blocks Separtors

Post by Dr.CSS »

It seems like you are talking about when you edit a page, no there is nothing you can do in the template to make those lines show when editing a page...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Content Blocks Separtors

Post by Wishbone »

The subject was "Content Block Separators" which suggests multiple content blocks or GCBs... A detailed explanation of what you want, a link to the page and the contents of your template might help us understand what you need.
Last edited by Wishbone on Thu Nov 25, 2010 4:09 am, edited 1 time in total.
User avatar
kanate
Forum Members
Forum Members
Posts: 10
Joined: Thu Oct 25, 2007 6:04 pm

Re: Content Blocks Separtors

Post by kanate »

Dr.CSS wrote: It seems like you are talking about when you edit a page, no there is nothing you can do in the template to make those lines show when editing a page...
Yes, that's what I want. Says In template I have
{content block="Slide 1 Title"}
{content block="Slide 1 Text"}
{content block="Slide 1 Image"}
{content block="Slide 2 Title"}
{content block="Slide 2 Text"}
{content block="Slide 2 Image"}
{content block="Slide 3 Title"}
{content block="Slide 3 Text"}
{content block="Slide 3 Image"}

When I go to edit page using this template, these blocks are all next to each other and really hard to tell which is which. Would be great if somehow in template I could add something like {content separator} or something like that and in the page edit it show line cut to separate these blocks
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Content Blocks Separtors

Post by Wishbone »

As I mentioned, you can do anything you want in the template with HTML to separate them, such as:

Code: Select all

<div class="content">{content block="Slide 1 Title"}</div>
<div class="content">{content block="Slide 1 Text"}</div>
Where the div.content class has some kind of border


..or something simple as:

Code: Select all

{content block="Slide 1 Title"}
<hr />
{content block="Slide 1 Text"}
<hr />
to put a line between them.
Last edited by Wishbone on Thu Nov 25, 2010 7:33 am, edited 1 time in total.
User avatar
kanate
Forum Members
Forum Members
Posts: 10
Joined: Thu Oct 25, 2007 6:04 pm

Re: Content Blocks Separtors

Post by kanate »

wishbone wrote: As I mentioned, you can do anything you want in the template with HTML to separate them, such as:

Code: Select all

<div class="content">{content block="Slide 1 Title"}</div>
<div class="content">{content block="Slide 1 Text"}</div>
Where the div.content class has some kind of border


..or something simple as:

Code: Select all

{content block="Slide 1 Title"}
<hr />
{content block="Slide 1 Text"}
<hr />
to put a line between them.
You missed my point. I want separtor in "Edit" Page in Admin, NOT when viewing page.
uniqu3

Re: Content Blocks Separtors

Post by uniqu3 »

Install Advanced Content module and you can separate it by Tabs.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Content Blocks Separtors

Post by Wishbone »

Ahh.. I understand now.. Sorry about that!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Content Blocks Separtors

Post by calguy1000 »

When I see posts like this I tend to think people are trying to use the wrong tool for the job... kinda like using a butter knife as a hammer... it may work 'okay' for some jobs, but its definitely not ideal and you'll probably have more problems down the road due to doing things this way.

Content pages aren't designed to be 'universal data types' where you just add fields into them and make them look like some kind of other solution.  They aren't designed for it, and aren't efficient at it.  Content pages are designed to simply show HTML pages, and may 'include' output from other modules.  This is where they are efficient.

This is where modules come in and are supposed to be used.  A module like Album, Uploads even Products and News can be easily massaged to create various albums that can then be displayed as a slideshow.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
kanate
Forum Members
Forum Members
Posts: 10
Joined: Thu Oct 25, 2007 6:04 pm

Re: Content Blocks Separtors

Post by kanate »

calguy1000 wrote: When I see posts like this I tend to think people are trying to use the wrong tool for the job... kinda like using a butter knife as a hammer... it may work 'okay' for some jobs, but its definitely not ideal and you'll probably have more problems down the road due to doing things this way.

Content pages aren't designed to be 'universal data types' where you just add fields into them and make them look like some kind of other solution.  They aren't designed for it, and aren't efficient at it.  Content pages are designed to simply show HTML pages, and may 'include' output from other modules.  This is where they are efficient.

This is where modules come in and are supposed to be used.  A module like Album, Uploads even Products and News can be easily massaged to create various albums that can then be displayed as a slideshow.
I understand your point. maybe i gave you the bad example, its not just for slideshow. the usefulness of the separators come in on the complex page like homepage with many call to action blocks and we want to give client  to be able to edit them but limit them on what they can do at the same time; many content blocks.
Post Reply

Return to “Layout and Design (CSS & HTML)”