Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter d0100

    (@d0100)

    Looking in the code I found this:

    // loop through each items array of values and replace tokens
    		foreach($values as $key => $value) {
    			$search  = "%" . strtoupper($key) . "%";
    			$template  = str_replace($search, $value, $template);
    		}

    Can I just create a new loop and create a shortcode for each value?
    I actually just need a shortcode for the subimages, and videos after available.

    Plugin Author macguru2000

    (@macguru2000)

    You may enable Shortcodes for each item’s description in the CataBlog Options. This will not help you put youtube videos into the LightBox, for that you may want to consider using the URL field for the youtube link and create your own template with another LightBox solution that can work with a youtube url in a links rel attribute.

    Thread Starter d0100

    (@d0100)

    I don’t want to enable WP shortcodes, I want to create shortcodes to use inside the description that would output the items contents.

    In other words, dismiss the usage of a template file and just call, for example, %IMAGE-THUMBNAIL% as if it was a shortcode.

    Ex:

    my description is very long. But check out my images:
      [IMAGE-THUMBNAIL]
    
      cool images, right? So here we continue with my description.

    Plugin Author macguru2000

    (@macguru2000)

    Got you, I’m sorry to say that I don’t see this feature being added anytime soon, as there is no way that I see to leverage WordPress and their work on Shortcodes into this custom implementation of Shortcodes within CataBlog. Meaning that it could be a significant amount of work. First I would like to implement some Widgets, a new template system, and a gallery feature that lets you create collections of catalog items. I’ll keep you posted and in the meantime you can always copy and paste the location of the thumbnail into your description…

    Thread Starter d0100

    (@d0100)

    Ok,another question. On the media library I am able to attach uploaded images to a CataBlog post. But is there a way to use the image on the description without copy pasting the image url?

    Thread Starter d0100

    (@d0100)

    Oh, silly me. Just found out I need only to [gallery]…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sub Videos and shorcodes with catablog items resources’ is closed to new replies.