Beginning Custom Themeing
Permalink1. In several parts of his site he wants to have arrows that he can click to switch between blocks of content (blog posts, or what have you). I've used JQuery Cycle2 plugin in the past to do this...can I use that plugin with Concrete5's block system? If not, is there a better way?
2. How can i create a blog page template that has the blog page text in one section, and then a slideshow for each blog page in another section?
I've attached an image of what I want it to look like. You can see the slideshow would be per-blog post (so a different slideshow for every post). Then I'd put the text inside a div that has the JQuery Expander plugin on it (For the "read more" part). Then over on the bottom right you can see the arrows that would shift through each blog post.
Any help?
Thanks!
I'd suggest installing the C5 demo website and play with that to implement in a test environment your requirement. It is set up with a blog type capability.
This is accomplished with a dedicated blog type page -- to which you can add any kind of content through C5 blocks -- as well as an AutoNav block on the blog index page. The AutoNav block can be configured to display pages below a specific page -- which is what you want.
Here's documentation on how the AutoNav block features work and work in concert:http://www.concrete5.org/documentation/using-concrete5/in-page-edit...
I've thought about it some, and I think I'm going to go about it a slightly different way...could I get all blog pages and then just have a foreach loop where I echo the contents of the blog as a div?
How would I do that?
Also is there a way to get the blog title separate from its text?
I'm thinking I'll just leave an area for him to add his own slideshow or image block, and then display the actual text of the blog beneath it. Then apply the Jquery Cycle plugin to the whole div.
Thanks!
Wait...are they each inside their own div? (Each blog post I mean).
As for the slider, take a look at addons. There are some fairly sophisticated ones available for free, or more elaborate ones at low cost:http://www.concrete5.org/marketplace/addons/-/view/?submit_search=1...
Or, you can take an existing jquery slider and and package that as a block as those noted above are.http://www.concrete5.org/documentation/how-tos/developers/understan...
Thanks!
The most clear path, which requires a bit of work for each slideshow, would be this.
For one blog posting, capture the desired test as well as an image from the slide show. Utilize the capabilities of a slider which also allows you to associate a hotlink with a specific graphic/text combo. Link that to the page where the blog post and slideshow are located.
This should give the effect, or come close, that your client wants.
If you want to save some time, FlexSlider can achieve this.
It has the ability to slide blocks using layouts and also has a page list slider which can be used for blog/composer posts.
You can create a new custom template template for it to match your design or you could modify one of the templates it comes with.
http://www.concrete5.org/marketplace/addons/flexslider/...
Thank you