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 Live Look - Entry Previews in CP Publish/Edit Tab - New Extension!

Development and Programming

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

Hey Guys,

I have documented and released a new extension called LG Live Look!

LG Live Look is an ExpressionEngine extension that adds a new ‘Live Look’ tab to the publish/edit form in the control panel. The tab contains a preview of the last saved version of an entry, which can quickly be updated using the ‘quick save’ button.

LG Live Look also adds a link to the edit entries table for each entry row. The source of the tab content and the target of the link can be easily customised in the extension settings using a subset of standard {ee} template tag variables (a full list can be found in the documentation).

There’s also an accompanying tutorial on how to setup your templates on the Newism blog so make sure you read that as well.

As always if you have any feedback or suggestions leave them as a comment below.

If you really like the extension, blog about it or share it on your favourite social network!

Enjoy.

————————————————————————————————

Caveats:

LG Live Look may conflict with some of my other LG extensions. Until I can get a fix out the problem is fairly easy to fix.

In your extensions folder do a global find replace:

Find:

$SESS->cache['scripts']['jquery']['1.6.4']

Replace with:

$SESS->cache['scripts']['jquery']['1.2.6']

Upload your extensions directory and your done.

       
bkuberek's avatar
bkuberek
124 posts
16 years ago
bkuberek's avatar bkuberek

Great job!

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

Thanks bkuberek,

Let me know if you have any issues with it!

Cheers Leevi

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

Hi Leevi,

Sounds great this one, well done. Will try this one out a bit later on, looks like it will really help out a few clients 😉

Best wishes,

Mark

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

Hi Leevi,

Don’t know if it’s just me or the fact that I am working on a localhost installation but I found that I had to place :

http://localhost:8888/lgtest/index.php/lg/index/{url_title}

into the settings instead of just /blog/post/{entry_id}/{url_title} as your post here indicated.

Also do you really need the {entry_id}/{url_title} in the settings as this may cause an error wouldn’t it. Shouldn’t you really just use one or the other (entry_id or url_title) just like you would in a real world example?

One other thing I noticed in your blog post was that it says :

2 Set the status to ‘Live Look’

but you had stated above that you had made a Pending status. I think maybe you meant Pending in the instruction line too didn’t you?

Anyway got it working and it looks nice so thanks for that one.

Best wishes,

Mark

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

I am a pain aren’t I 😉

I just went and made a second weblog and went into the extensions settings page and got this error at the very top of the page :

Notice: Undefined index: 2 in /Applications/MAMP/htdocs/lgtest/admin/extensions/ext.lg_live_look_ext.php on line 563

Not too sure why that is though? Any thoughts?

Best wishes,

Mark

       
bkuberek's avatar
bkuberek
124 posts
16 years ago
bkuberek's avatar bkuberek

Edit Remove the extra text. Look here for MAMP setup

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

That’s unfortunately all a bit over my head to tell the truth 😉

Sounds interesting though. Is there any material on the internet about how to do this? If there is then a link would be great thanks as I don’t want to take away from Leevi’s thread if I can help it.

Best wishes,

Mark

       
bkuberek's avatar
bkuberek
124 posts
16 years ago
bkuberek's avatar bkuberek

sorry I was writing this wiki so I could edit my post before you read it. I was not fast enough. Here is the wiki: MAMP setup

       
gridonic's avatar
gridonic
231 posts
16 years ago
gridonic's avatar gridonic

OMG Leevi, you’re a fast shooting extension pistol.

Gonna try this out later today, thanks!

       
ian Pitts's avatar
ian Pitts
175 posts
16 years ago
ian Pitts's avatar ian Pitts

This looks great! Is it MSM compatible?

       
bkuberek's avatar
bkuberek
124 posts
16 years ago
bkuberek's avatar bkuberek

Tested this extension on both my local development environment and on our production server. There were no errors.

This extension adds great value to the publish page. Our editors will greatly appreciate it.

It would be great to be able to see entries that have not yet been saved or that are closed. This is something that would really make a difference. I think that could be achieved by getting the template from the DB and parsing the tags on the fly instead of ajax loading the page into an iframe.

Nevertheless, this is great piece of script.

Thanks for all your great extensions.

quick question: Should I download jquery or can I rely on the external link that is set by default?

       
james Brown's avatar
james Brown
492 posts
16 years ago
james Brown's avatar james Brown

I can’t figure out how to get this to work with EE static pages. Especially since you can choose the template in the publish screen. Any ideas?

       
bkuberek's avatar
bkuberek
124 posts
16 years ago
bkuberek's avatar bkuberek

I believe this will only work when all the entries for the specific weblog have a common template. If you are using the pages module, every post could have a different template. This extension will not work with that since you have to choose your template per weblog and not per entry.

Leevi, please correct me if I am, wrong.

       
bkuberek's avatar
bkuberek
124 posts
16 years ago
bkuberek's avatar bkuberek
It would be great to be able to see entries that have not yet been saved or that are closed.

I already answered my question by reading your blog entry on newism.com.au

       
1 2 3 Last

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.