Page Helper
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Conflux Group, Inc.
Populate #page_url_title when selecting parent
Feature Request
adfowler
|
Posted: 28 August 2011 08:54 PM |
|
|
|
I bought this add-on to help make pages out of already created content, but the #page_url_title wouldn’t populate. It would be helpful to populate #page_url_title when selecting an item from the parent pages dropdown list.
After line 50 in the add-on’s javascript, I added the following:
// Bind the Change event of the Pages Dropdown select field to update the Page URL Title text field. $("#pages_dropdown").change(function (){ $("#page_url_title").val(url_title_field.val()); });
Works for me, but it would be nice to have in core. Thanks!
-Aaron
|
|
|
Jeremy Gimbel, Conflux Group, Inc.
|
Posted: 28 August 2011 08:57 PM |
# 1
|
|
Developer
|
Thanks for the tip.
I have been planning to revisit Page Helper for a while to add some new functionality to it.
Glad it’s working for you.
|
|
|
adfowler
|
Posted: 28 August 2011 09:44 PM |
# 2
|
|
|
Thanks, Jeremy - this is definitely worth the money!
If you’re revisiting this, I’ll make another request - for already created content, please change the template to the default for the channel.
Cheers,
Aaron
|
|
|
Jeremy Gimbel, Conflux Group, Inc.
|
Posted: 28 August 2011 09:47 PM |
# 3
|
|
Developer
|
The problem with defaulting is that it’ll change the value without the user ever knowing it was changed. This is the same problem I had with allowing Page Helper to be active when editing an existing page.
Have any suggestions for how you’d like to see that work, such that it doesn’t automatically create a page for entries that don’t need them?
|
|
|
adfowler
|
Posted: 28 August 2011 10:30 PM |
# 4
|
|
|
I’m thinking it would only choose the default page template for the channel if the entry wasn’t a page. Changing the page template won’t create a page - the user would also have to generate the page uri.
Do you mean people wouldn’t know the template was changed because they had the template field hidden in Publish Layouts?
|
|
|