Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a plugin similar to multiblock to insert blocks into the content?
#1
I need to give the site editor the ability to use code blocks in page texts, like in cms typesetter. Inserting blocks into a template common to all pages is useless for me
Reply
#2
I copied the trick to use code blocks some time ago from another cms system with flat file database. Have to go through my harddisks where I left it.
Reply
#3
Is components not already doing what you need ?
http://get-simple.info/wiki/components

How about this plugin
http://get-simple.info/extend/plugin/multiblock/1322/
Reply
#4
as far as I know, both components and multiblock work by embedding in a site template that is common to all pages.
I, as a developer, can use them with conditions, the site content editor needs a simpler tool.
If there are no options with WYSIWYG, the option with tags as in wordpress will do.
Reply
#5
Mvlcek made lots of powerful plugins for the GS cms
One of them is the dynpages plugin
http://mvlcek.bplaced.net/get-simple/dynpages
Use it to embed anything you want with placeholders in pages, also your own blocks with your own php
Reply
#6
(2022-10-24, 21:11:53)demon416 Wrote: I need to give the site editor the ability to use code blocks in page texts, like in cms typesetter. Inserting blocks into a template common to all pages is useless for me

Why you don't create seperate template file only for page where you can use multiblock? index.php - put multiblock option,  and rest subpage template.php without multiblock function.
Reply
#7
Quote:Why you don't create seperate template file only for page where you can use multiblock? index.php - put multiblock option,  and rest subpage template.php without multiblock function.

Yes that is the solution. Now I remember I did that somewhere in one of my local GS websites. I just can't find it anymore have too many loose projects spreaded over my usb-sticks. I am sure this solution is somewhere in the forum where I must have found it. Thanks for posting this solution multicolor.
Reply
#8
always you can use
if(get_page_slug() == 'slug what you want show multiblock'){
getMultiBlock('categorynamemultiblock');
}
Maybe next release i create some function for this.
Reply




Users browsing this thread: 1 Guest(s)