Code Monkey home page Code Monkey logo

flexible-templates's People

Contributors

fellowshipagency avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flexible-templates's Issues

Different templates for different flexible content fields

Hi,

thanks for developed this plugin. It's really awesome and a great starting point.

I've created 2 flexible content fields, one for posts and another for pages and both have different row layouts.
The problem is that both loads the same templates. so if I save a template created with fc in posts it can be loaded in the fc of pages, but this is not correct for the fc in pages. the result is that, after page reload the fc result empty.

Is there a way to create templates related to a specific flexible content field?

Thanks in advance.

Can't save each block to template individually

It would be more convenient to have templates for each blocks inside Flexible Content field.

In my case I have Flexible Content field having some useful blocks inside, for example:

  • File download block with description (templates needed for some global files on website)
  • Slider Block (templates needed because same photos can be used on many pages)

Can't save templates within nested Flex field

I have a Flex field within a Flex field. After entering a template name and clicking "Save this template" I got the error "Please input template name." and the template is not saved.

I tried this also with a Flex field within a Repeater field. Here I can't save any template, too - but there's no error message.

Any ideas what's gong wrong.

Editing in both WYSIWYG and raw editor.

Let me start by saying this plugin is amazing.

I found a weird behavior when editing in both the WYSIWYG editor and the raw HTML code editor of a WYSIWYG field.

If i edit in the WYSIWYG editor, then switch to the HTML editor, I cannot update the code—it overrides with what was there before I switched views about every second or so.

I have attached a quick screen recording (mp4) demoing this behavior.

Any feedback / help would be greatly appreciated.
sampleerror.mp4.zip

Cant load saved template?

Hello,

Im testing out this plugin (which would be a total game change for us if it worked), and while it seems like I can save a template just fine, when I go to load a template on a page the flex content area stays empty/no blocks are added.

I am running the latest version of WP and ACF Pro (5.6.1)

I checked the database to make sure things are saving. It seems like it is saving SOMETHING... here is what it looks like:

SELECT * FROM wp_flexible_templates_acf

ID: 
3
name: 
Test 2
template: 
%3Cdiv%20class%3D%22values%22%3E%0A%09%09%09%3Cul%20class%3D%22acf-bl%20list%22%3E%0A%09%09%09%09%09%09%3C/ul%3E%0A%09%09%3C/div%3E

Which decodes to:

<div class="values">
			<ul class="acf-bl list">
						</ul>
		</div>


Which sure doesnt seem like what should be stored in that table. Help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.