Welcome Guest, Not a member yet? Register   Sign In
’Build a CMS in CodeIgniter’ tutsplus - Create a contact page or a gallery page
#14

[eluser]Lykos22[/eluser]
[quote author="JoostV" date="1382871931"]A flexible way to incorporate complex html elements into a CMS page is by building a shortcode library for them.

Once that's ready, a client can easily add a Google map by typing something like
Code:
[ai:maps address=1 Infinite Loop Cupertino]

There's a video tut online that shows you how to do that: codeigniter.tv/a-6/Create-a-Codeigniter-Wordpress-like-shortcode-parser. The tut's a little old and crappy, but it should get you on your way.

You can create a similar shortcode for a gallery.

Gallery admin handling shoudn't be too hard:
* a tabel of galleries
* a table of gallery images
[/quote]

How can a gallery created?? I mean I don't get it.. All cms-pages are stored in pages table (which has id, title, slug, template, body etc etc), whereas a gallery or a portfolio should be stored in a different table, e.g. projects with fields id, image, caption, description etc etc or the one you said before. Should I also make another section on the admin panel for managing the portfolio or the gallery?? Could you explain me please??


Messages In This Thread
’Build a CMS in CodeIgniter’ tutsplus - Create a contact page or a gallery page - by El Forum - 12-03-2013, 04:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB