Discussion on Templatera - Template Manager for Visual Composer

wpbakery

wpbakery supports this item

Supported

This author's response time can be up to 1 business day.

405 comments found.

Hi, is it possibile to include a shortcode by name?

echo do_shortcode(‘[templatera id=”1008”]’);

Hello, Yes, you can do it. However some elements like grids, etc. may not function when added in this manner.



Knowledge Base · Official Support · Facebook · Twitter

Don’t forget to join our newsletter. Be first to get news and inside secrets from Visual Composer team.

yes I found this solution to include shortcode by slug but as you said grid doesn’t work 8(

in the vc_template_manager.php line 415, replace that function with the following:

/** * Frozen row shortcode hook. * @param $atts * @param string $content * @return string */ public function outputShortcode($atts, $content = ’’) { $id = $el_class = $output = ’’; extract(shortcode_atts(array( ‘el_class’ => ’’, ‘slug’ => ’’, ‘id’ => ’’ ), $atts)); if ( $slug ) { $block = get_page_by_path( $slug, OBJECT, ‘templatera’ ); if ( $block ) { $id = $block->ID; } } if (empty($id)) return $output; $post = get_post($id); if ($post) { $output .= ‘ ’; if($post->post_type===self::$post_type) $output .= apply_filters(‘the_content’, $post->post_content); $output .= ‘ ’; } wp_enqueue_style(‘templatera_inline’, $this->assetUrl(‘css/front_style.css’), false, ‘2.1’); return $output; } It basically just looks up the id using the slug and keeps plugging away.

Quick Question: 1. I insert a Template (with placeholder content, e.g. “lorem ipsum” Text) 2. Then I the “lorem ipsum” Text with something else 3. Then I go back to the Templatearea and make Changes to the original Template

What happens now? Is my edited Text on the page replaced with the placeholder content again?

Hello, I you add the template via templatera element, then the content will be replace with the new one. However if you add it via add template option, then there will be no change.



Knowledge Base · Official Support · Facebook · Twitter

Don’t forget to join our newsletter. Be first to get news and inside secrets from Visual Composer team.

Apologies for a typo. It should be *When you add.

Hey,

first of all great plugin, but I want a bit more flexibility. I am not sure if it’s possible with Templatera.

After creating a template, i.e. a two column row with textfields, I want to have the ability to alter the text, but have everything else being “managed” from the template itself.

As far as I know I only have two options; adding Templatera to a page via an element with no possibility to alter it on the page itself OR adding the template to the page how you normally would and losing the control to “manage” it globally.

Is there a third way?

Thank you in advance for your answer.

Gr. Pim

Hello, I am afraid, we currently do not have such feature at present. But we might add it in future.



Knowledge Base · Official Support · Facebook · Twitter

Don’t forget to join our newsletter. Be first to get news and inside secrets from Visual Composer team.

After uploading the plugin I got this Database error:

Erro de banco de dados do WordPress Column ‘post_content’ cannot be null para a consulta INSERT INTO `wp_posts` (`post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_content_filtered`, `post_title`, `post_excerpt`, `post_status`, `post_type`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_parent`, `menu_order`, `post_mime_type`, `guid`) VALUES (1, ‘2017-02-19 15:53:18’, ‘2017-02-19 15:53:18’, NULL, ’’, ’’, ’’, ‘publish’, ‘templatera’, ‘closed’, ‘closed’, ’’, ’’, ’’, ’’, ‘2017-02-19 15:53:18’, ‘2017-02-19 15:53:18’, 0, 0, ’’, ’’) feita por activate_plugin, do_action(‘activate_templatera/templatera.php’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, VcTemplateManager::install, VcTemplateManager::create, wp_insert_post

Hello, please use support.wpbakery.com and share your temporary website credentials so our support team can investigate your issue and help you out.



Knowledge Base · Official Support · Facebook · Twitter

Don’t forget to join our newsletter. Be first to get news and inside secrets from Visual Composer team.

Hi there,

What are the PhP and MySQL requirements for this plugin?

Thanks

Is it possible to run INSERT-PHP wordpress plugin into Templatera. Into usual Visial Composer page editor its working ok, but when I try to use it in Templatera it showing the error.

by
by
by
by
by
by