Insert a Gallery in Blog Content or in new Layout ?

Permalink Browser Info Environment
Hi, if I want to insert an image gallery (like in wordpress )with a code, is there a way? Or where could I ad a new empty block, (change the layout of the blogentry) to use as a galllery block or similar?
The other way I think about now is to create first a new gallery site, and link one image inside the blog to this gallery site. But I think this way is a lot of work and not very practicable...
I am a photographer so my most blogs come with some new images.

And another question: I change my joomla website to concrete5, I want to take some of that blogs from there and put it in the new Concrete5 site. The Problem is, all the blogdates link to the entry date. Can I change a single blog date f.e. back to Nov. 2011?

Thx, Reinhard

Type: Discussion
Status: New
fardorthin
View Replies:
RadiantWeb replied on at Permalink Reply
RadiantWeb
couple ways you could do the gallery. you could make your post and then go to the page and put it in edit mode. then just add a galler block of your choosing.

Or you could use a custom page_type for that post, or all posts, and add a global area:

<?php  
   $a = new GlobalArea('gallery');
   $a->display();
   ?>


Then go to the page at least once to refresh the cache, and then go to your dashboard stacks area, and add a gallery block to your new global area.

for the date issue, you can use the date picker in the options pane when adding/editing a post. Set this date to any date desired.

you can also just go to the page and edit the pages properties and change it there.

ChadStrat
fardorthin replied on at Permalink Reply
fardorthin
Thanks chat, just a question regarding: "...use a custom page_type for that post, or all posts, and add a global area:"
I think you mean I should add a new custom page site. Can you please explain which kind of handle I should use? Is this the pb_post handle? And where do I find this site later on to paste the code for the global area? (Sorry, I could not find a relevant "how to..")
Reinhard
RadiantWeb replied on at Permalink Reply
RadiantWeb
you would basically do this:

1-copy the pb_post.php file to your root /page_types folder and rename it to "pb_post_gagllery" or something like that.
2-edit your new file and add the code I posted above for a global block area.
3-go to your page_types area in your dashboard and manually add a new page_type called "pb_post_gallery".
4-create at least one post with this new page_type. then go view it. This is a dummy post just so you can go view it, so that C5 will register the global area. View a page with a global area is how C5 registers them. you can delete this post as soon as you view it once.
5- go to your stacks area of you dashboard, and add blocks to your new global area.

all done.

Any page using this page_type will now have those blocks wherever you put/style that global area.

ChadStrat

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.