Target container

100 views
Skip to first unread message

Andry

unread,
Aug 12, 2011, 5:32:10 AM8/12/11
to RedDot CMS Users
Hi guys,

I am building an image gallery page. The user should be able to create
gallery page and upload images, thumbnails and enter alternate texts.

For example there will be gallery pages for volleyball, basketball and
so on.

So I built image and image list content classes. I have also created a
page definition of foundation page with image gallery.

Now the problem is I how do I make the container at the foundation
page defined as a target container and assign target container to the
lst_Links automatically?

The user will not have access to SmartTree.

Or is there a better approach so the image page still gets a master
page?

Thanks for your help guys.

Cheers,

Andry

Jian Huang

unread,
Aug 12, 2011, 9:33:02 AM8/12/11
to RedDot CMS Users
Hi Andry,

Why target container with list?

Would it be possible to make it with regular container, which has
image modules within?

Best,

-Jian

Andry Poernomo

unread,
Aug 13, 2011, 11:00:04 PM8/13/11
to reddot-c...@googlegroups.com
Hi Jian,

It is working even if I just use image container. But it will just as if
there is no master page wrapping it :)

So, if there is a image gallery with image list in it. Is it possible to
link this image list somewhere else using just SmartEdit? For example there
is now Volleyball image gallery, how do I refer the lst_Links at other page
to show the images in other pages? I can do it using SmartTree, but I need
to make sure user can use SmartEdit to do this :)


Cheers Jian!

Andry

Hi Andry,

Best,

-Jian

--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to
reddot-cms-use...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/reddot-cms-users?hl=en.

Jian Huang

unread,
Aug 15, 2011, 8:50:28 AM8/15/11
to RedDot CMS Users
Hi Andry,

So close, but I believe you started off differently.

A list in not needed in this case.

You neeed:
A Foundation content class with a container
An image module content class that will go into the container

The foundation content class code
<html>
<head><title></title></head>
<body>
<%con_images%>
</body>
</html>

The image module content class code
<div>
<a href="<%img_main%>"><img src="<%att_thumbnail%>"/></a>
</div>

Please note that att_thumbnail is an attribute placeholder that
automatically generates the thumbnail from img_main.

Now, when you click on the image, the page will go to a page that just
shows the image, no foundation, no nothing.

That is fine. What you will need next is apply some lightbox or
imagebox javascript magic and now you have a web 2.0 image gallery.

Best of luck.

-Jian

On Aug 13, 11:00 pm, "Andry Poernomo" <andry.poern...@gmail.com>
wrote:

Boris Crismancich

unread,
Aug 15, 2011, 1:20:56 PM8/15/11
to RedDot CMS Users
Hi Andry,

I would recommend something way more simple.

Have a look at all the jQuery lightbox galleries. The're looking
great, provide good usability and most of them are based on a single
<UL> with anchors and images in them.
Create a plugin and save the HTML Code to a text element. Using the
jQuery sort mechanism you can even sort way more comfortable than you
could using CMS functionality.
Even deleting is just a click away. And if you use versioning, you can
even go back to previous versions.

Cheers,
Boris
--
www.crismancich.com

Jian Huang

unread,
Aug 15, 2011, 3:59:36 PM8/15/11
to RedDot CMS Users
Hi Boris,

Very good suggestion, but would one have trouble generating thumbnails
with the simpler method?

-Jian

On Aug 15, 1:20 pm, Boris Crismancich

Boris Crismancich

unread,
Aug 17, 2011, 3:18:32 AM8/17/11
to RedDot CMS Users
Hi Andry,

you can use Asset Manager to create thumbnails and save them with a
new name. Whenever I upload a file to the gallery, I start an RQL
Script that creates <FILENAME>_th.jpg for me and later on adds it to
the text element. The result is something like this...

<div class="gallery">

<!-- Begin text element -->

<ul>
<li><a href="img01.jpg"><img src="image01_th.jpg" /></a></li>
<li><a href="img02.jpg"><img src="image02_th.jpg" /></a></li>
<li><a href="img03.jpg"><img src="image03_th.jpg" /></a></li>
</ul>

<!-- End text element -->

</div>

Kind regards,
Boris
--
http://www.crismancich.com

Andry Poernomo

unread,
Aug 18, 2011, 1:45:30 AM8/18/11
to reddot-c...@googlegroups.com
Hi Jian,

Thanks for the tips... :)

I think what I'm struggling with is referencing the link. The link that has
a list of images on the gallery page.

How can I do this from SmartEdit? I know you can just double click the
lst_Links to store it in the clipboard and click Reference Link in clipboard
at SmartTree :)

Cheers,

Reply all
Reply to author
Forward
0 new messages