The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MultiBlock
#7
(2023-10-15, 18:48:26)islander Wrote:
Hello Cath, let me see if I can walk you though it.

If you have already installed the plugin and activated it, go back to the Plugins tab and from the side menu choose "MutliBlock Settings".

Next, click the "Add New MultiBlock" button.
Here you will give it section a name and slug (holder), add your desired field types, and create a template to hold these fields.

For example:
Section Name= My Products
Slug = products

(click "Add New Field" 3 times)
Field Name   |  Slug   |  Default Value   |   Field Type
Product Title | title     |                        |  Text
Product Image | photo |                        |  image
Description | description |                        |  Wysiwyg

Click save, and now click on the "Template" button to add your template.

For example:
<div>
  <img src="<?php mbvaluetext('photo');?>">
  <h4><?php mbvaluetext('title');?></h4>
  <span style="color: grey"><?php mbvalue('valuename');?></span>
</div>

Click save and go to your Theme tab and edit theme.
Place <?php getMultiBlock('products');?> where you would like your new blocks to appear.

Finally, go to your Pages tab and click "MutliBlock".
Here you should see "My Products" in the dropdown list.
Choose Section, then click "Add New +" and populate your desired info.
Hope this helps!

I've followed the steps and they work brilliantly!

If I add a field type "Dropdown", how to I add items to it?

How difficult would it be to add a video field type (I want HTML video, not Youtube or Vimeo). Is this something I could pay to have done? 

This is a small thing, but if I select WYSIWYG as the field type, <p> tags are displayed in the website. It's not a big deal - I just switched to textarea and that works fine.

Thank you so much again. I'm SO happy!


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
MultiBlock - by multicolor - 2022-09-13, 05:12:55
RE: MultiBlock - by multicolor - 2023-01-18, 07:25:47
RE: MultiBlock - by multicolor - 2023-04-21, 06:10:33
RE: MultiBlock - by CathG - 2023-10-15, 05:39:04
RE: MultiBlock - by islander - 2023-10-15, 18:48:26
RE: MultiBlock - by CathG - 2023-10-16, 11:11:44
RE: MultiBlock - by CathG - 2023-10-16, 12:00:04
RE: MultiBlock - by CathG - 2023-10-16, 14:29:26
RE: MultiBlock - by CathG - 2023-10-16, 14:50:42
RE: MultiBlock - by islander - 2023-10-16, 18:02:46
RE: MultiBlock - by CathG - 2023-10-16, 19:20:27
RE: MultiBlock - by CathG - 2023-10-16, 19:28:47
RE: MultiBlock - by islander - 2023-10-16, 19:55:23
RE: MultiBlock - by CathG - 2023-10-17, 07:35:10
RE: MultiBlock - by islander - 2023-10-17, 07:54:27
RE: MultiBlock - by CathG - 2023-10-17, 08:15:13
RE: MultiBlock - by islander - 2023-10-17, 08:28:26
RE: MultiBlock - by CathG - 2023-10-17, 08:38:03
RE: MultiBlock - by CathG - 2023-10-17, 08:59:19
RE: MultiBlock - by islander - 2023-10-17, 18:47:29
RE: MultiBlock - by CathG - 2023-10-17, 19:30:26
RE: MultiBlock - by multicolor - 2023-10-17, 20:38:42
RE: MultiBlock - by multicolor - 2023-10-18, 08:09:19
RE: MultiBlock - by CathG - 2023-10-18, 08:11:47
RE: MultiBlock - by CathG - 2023-10-18, 08:18:49
RE: MultiBlock - by CathG - 2023-10-18, 08:32:54
RE: MultiBlock - by islander - 2023-10-18, 00:02:48
RE: MultiBlock - by multicolor - 2023-10-18, 06:14:27
RE: MultiBlock - by roisag - 2024-06-10, 23:56:20
RE: MultiBlock - by islander - 2024-06-11, 00:30:34
RE: MultiBlock - by roisag - 2024-06-11, 16:59:42
RE: MultiBlock - by islander - 2024-06-12, 18:32:07
RE: MultiBlock - by roisag - 2024-06-13, 05:06:43
RE: MultiBlock - by islander - 2024-06-13, 06:35:23
RE: MultiBlock - by islander - 2024-06-20, 06:15:55
RE: MultiBlock - by roisag - 2024-06-21, 06:23:11
RE: MultiBlock - by Oleg06 - 2024-06-19, 23:12:20
RE: MultiBlock - by islander - 2024-06-20, 02:12:12



Users browsing this thread: 9 Guest(s)