We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Template Info - New Plugin

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey guys,

In response to this thread I have released LG Template Info with full documentation.

As usual its available on my site: LG Template Info - Display ExpressionEngine Template information in your templates.

Enjoy

       
PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated

Cool-Thanks!

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hi Leevi,

Thanks for letting me see this one as I couldn’t post in the original forum post. A great plugin 😉

Just one thing though, I think there is something up with the information page for that one as the text in the left-hand side-bar is coming up in a different font to usual?

Great plugin though. Sure it will come in handy at some point.

Best wishes,

Mark

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

@mark: what… you don’t dig my new tech code look?

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

It’s absolutely fine but in that case don’t be lazy. You should update all the other pages in that case too!! 😉 😊 😉

Best wishes,

Mark

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Darn you, just noticed you’ve updated it!!!

Just out of interest (I only took about 10 seconds look at the page though) what was it. I could see that the UL had the same class name etc but what made it come out in courier instead?

As I said I only took literally a fleeting look but now that it isn’t there any more I’m just wondering.

Best wishes,

Mark

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Just an open <code> tag in the content… easy to fix..

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Aha,

That would be the blighter! 😉

Are you going to add this one to your main page as well? Leevi is currently thinking “Is Mark just trying to find me more work to do or what?!!” 😉

Best wishes,

Mark

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Aha, That would be the blighter! 😉 Are you going to add this one to your main page as well? Leevi is currently thinking “Is Mark just trying to find me more work to do or what?!!” 😉 Best wishes, Mark

I don’t know if it deserves a spot on the home page… although I’m thinking that’s what most people see as my entire collection of addons. It was originally designed to be a feature panel so I can either add all the addons or start removing some and creating a bigger view all button… Not sure

I’m thinking I’ll redesign the site when EE 2.0 comes out to accomodate new addons end start removing the old ones.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Go on, add it, you know you want to.

Would be easier on your signature then as you could just link to that page and it will show everything you have done. Up to you though.

Again, great little plugin which I’m sure I will find a use for.

Best wishes,

Mark

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

How’s my signature now?

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Perfectamundo!! 😉

       
Amanda Napolitano's avatar
Amanda Napolitano
70 posts
16 years ago
Amanda Napolitano's avatar Amanda Napolitano

Great plugin! Exactly what I needed except for one little thing I came across. On pages with multiple words in the title, it keeps the dashes/underscores. Not sure if there’s even anything that can be done for that but thought I’d ask if there were any ideas.

i.e. template name = weekend-events

Thoughts?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
Great plugin! Exactly what I needed except for one little thing I came across. On pages with multiple words in the title, it keeps the dashes/underscores. Not sure if there’s even anything that can be done for that but thought I’d ask if there were any ideas. i.e. template name = weekend-events Thoughts?

I’m a little confused. This extension pulls the template group name and template name. It’s an EE condition that these names have no spaces.

Pages are assigned to a template group / template so this plugin is using that infomration.

       
Meirion's avatar
Meirion
127 posts
16 years ago
Meirion's avatar Meirion

Leevi,

Great plugin, thanks. Is there any way, however, of getting the plugin to output the details of the current embed template that the template engine is rendering?

At the moment, it appears that whatever embed template you call the plugin from the output is always the details of the parent template of the page you’ve requested.

What I’m trying to do is add a debugging link to all my templates (and embeds, of which there are many!) to identify in which template a particular problem may be lurking.

eg this goes at the top of all of my templates and embeds:

{if member_group == "1"}
<a href="/system/index.php?C=templates&M=edit_template&id={exp:lg_template_info" title="Edit Template" class="editthis">_  Template: {exp:lg_template_info attribute='template_group_name'}/_  <strong>{exp:lg_template_info attribute='template_name'}</strong>_</a>
{/if}

Or perhaps there could be another way of just automatically adding this output to all templates?

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.