New killer feature - mini templates inside one template

Stagger Lee
1796 Posts
Stagger Lee posted this 26 January 2016

I am making this for people to vote.

Will explain best with screenshot.
Basically it is like this:

  • We are on one Page/Template
  • In one block we insert some PHP code
  • Themler recognize this code, notices code calls unavailable/nonexisting template, Themler make this "mini template".
  • Mini template will be stripped from everything inside, specially header, footer and sidebars. Maybe Post content can be left.
  • We never need to go to the mini template, editing mini template in main template will in background edit just mini template.
  • Mini templates can be made with some scrambled (strig of numbers) filenames, not important.
  • Inside those mini templates we can insert all controls, and style them as normal.
  • Each mini template will have (or dont know what best is) post loop, and reset query at the end. As there can be several mini templates (several queries) inside one main template.
  • To begin with it can be maid only for WordPress as most used CMS. Doesnt need to be maid for all CMS directly in the beginning. Or at all.
  • PHP code can we insert manually, just Themler know what we are doing.
  • Maybe most important, mini templates should be maid directly without "Customize template style" options. As separate customized directly.
  • No need to worry about checking inserted PHP code. Our responsibilty. On error we have F5 button and reload.
  • If I remember something else, I will write below.

Will take new Pages Section for example, fast it should be not used there. But it can be, it is up to User to decide.

https://codex.wordpress.org/Class_Reference/WP_Query

http://attachments.answers.billiondigital.com/791/4791/2015-09-01-105919.jpg

Now in those block if we insert own PHP code, WP query, Themler should recognize at least basic things from WP_Query and in background make one mini loop template with some random filename.
And just change standard posts loop it already makes to this new one.

Some paramethers from WP_Query Themler can help to recognize and make mini template accordinly:

  • 'author' => 123
  • 'cat' => 4
  • 'category_name' => 'staff'
  • 'tag' => 'cooking'
  • 'p' => 7
  • 'page_id' => 7
  • post_type' => array( 'post', 'page', 'movie', 'book' )
  • 'post_status' => 'draft'
  • 'posts_per_page' => 3
  • Etc....etc....

If you wont to atract beginners to buy Themler licences your developers are gifted and can make WP_Query parameters as options, some kind of WP_Query generator inside Themler. But I would not ask for it to begin with.

I am asking this mostly because Themler overwrite templates on Save, not because I am lazy to do manual work inside templates. As it is so now this feature would really be "killer".

Short said, mini templates with almost nothing inside, except basic structure and WP_Query loop. And possibilty to insert and edit Controls.

I am making this for people to vote. Will explain best with screenshot. Basically it is like this: - We are on one Page/Template - In one block we insert some PHP code - Themler recognize this code, notices code calls unavailable/nonexisting template, Themler make this "mini template". - Mini template will be stripped from everything inside, specially header, footer and sidebars. Maybe Post content can be left. - We never need to go to the mini template, editing mini template in main template will in background edit just mini template. - Mini templates can be made with some scrambled (strig of numbers) filenames, not important. - Inside those mini templates we can insert all controls, and style them as normal. - Each mini template will have (or dont know what best is) post loop, and reset query at the end. As there can be several mini templates (several queries) inside one main template. - To begin with it can be maid only for WordPress as most used CMS. Doesnt need to be maid for all CMS directly in the beginning. Or at all. - PHP code can we insert manually, just Themler know what we are doing. - Maybe most important, mini templates should be maid directly without "Customize template style" options. As separate customized directly. - No need to worry about checking inserted PHP code. Our responsibilty. On error we have F5 button and reload. - If I remember something else, I will write below. Will take new Pages Section for example, fast it should be not used there. But it can be, it is up to User to decide. https://codex.wordpress.org/Class_Reference/WP_Query ![http://attachments.answers.billiondigital.com/791/4791/2015-09-01-105919.jpg][1] [1]: http://attachments.answers.billiondigital.com/791/4791/2015-09-01-105919.jpg Now in those block if we insert own PHP code, WP query, Themler should recognize at least basic things from WP_Query and in background make one mini loop template with some random filename. And just change standard posts loop it already makes to this new one. Some paramethers from WP_Query Themler can help to recognize and make mini template accordinly: - 'author' => 123 - 'cat' => 4 - 'category_name' => 'staff' - 'tag' => 'cooking' - 'p' => 7 - 'page_id' => 7 - post_type' => array( 'post', 'page', 'movie', 'book' ) - 'post_status' => 'draft' - 'posts_per_page' => 3 - Etc....etc.... If you wont to atract beginners to buy Themler licences your developers are gifted and can make WP_Query parameters as options, some kind of WP_Query generator inside Themler. But I would not ask for it to begin with. I am asking this mostly because Themler overwrite templates on Save, not because I am lazy to do manual work inside templates. As it is so now this feature would really be "killer". Short said, mini templates with almost nothing inside, except basic structure and WP_Query loop. And possibilty to insert and edit Controls.
Vote to pay developers attention to this features or issue.
4 Comments
Order By: Standard | Newest
Stagger Lee
1796 Posts
Stagger Lee posted this 26 January 2016

Just for the record. I already did it and Themler can recognize and work with this code. So most of it is there.
Problem is for every mini template you have to go and make new custom template, remove everything, countless number of clicks. But Themler works well with it and has no problem in understanding what is this about.

Most tricky part is if you forgot to click on "Customize template style" in some mini template (3 instances per one mini template). Gives very undesired effects.

Topic could also be without problem named as "Let Themler make WP_Query loop by our choices". Plus of course, generating mini templates in background.

Just for the record. I already did it and Themler can recognize and work with this code. So most of it is there. Problem is for every mini template you have to go and make new custom template, remove everything, countless number of clicks. But Themler works well with it and has no problem in understanding what is this about. Most tricky part is if you forgot to click on "Customize template style" in some mini template (3 instances per one mini template). Gives very undesired effects. Topic could also be without problem named as "Let Themler make WP_Query loop by our choices". Plus of course, generating mini templates in background.

Last edited 26 January 2016 by Stagger Lee

Linkebel
136 Posts
Linkebel posted this 04 February 2016

It is a interesting option and nobody vote

Very weird

It is a interesting option and nobody vote Very weird
Stagger Lee
1796 Posts
Stagger Lee posted this 04 February 2016

Here is video about it.
Just needs to be made simple for beginners and reduce number of clicks for advanced Users.

Themler almost has it, and behave logically.

https://www.youtube.com/watch?v=EMetZ6QUdnw

It really should not be so difficult for Themler gifted developers. At least to begin with WordPress as most used CMS.

They did it with custom images in WordPress. Just insert one word somewhere instead of other word. No complex and huge changes when Themler does it already. In case of wp_query instead of one word it is several words, but it is almost the same.

https://generatewp.com/wp_query/

Here is video about it. Just needs to be made simple for beginners and reduce number of clicks for advanced Users. Themler almost has it, and behave logically. https://www.youtube.com/watch?v=EMetZ6QUdnw It really should not be so difficult for Themler gifted developers. At least to begin with WordPress as most used CMS. They did it with custom images in WordPress. Just insert one word somewhere instead of other word. No complex and huge changes when Themler does it already. In case of wp_query instead of one word it is several words, but it is almost the same. https://generatewp.com/wp_query/

Last edited 04 February 2016 by Stagger Lee

Stagger Lee
1796 Posts
Stagger Lee posted this 04 February 2016

And of course generating new template in background. One for each custom wp_query and stripped from everything except posts loop.

And of course generating new template in background. One for each custom wp_query and stripped from everything except posts loop.
You must log in or register to leave comments