Page 1 of 1
[SOLVED] Image Picker - Show Page Alias
Posted: Mon Jun 01, 2009 5:30 pm
by runblip
I am using the Image Picker module and I like it, but I would prefer that it list the Page Alias vs the Page Title. How can I modify this module to display page alias?
Thanks!
Re: Image Picker - Show Page Alias
Posted: Mon Jun 01, 2009 5:45 pm
by jmcgin51
runblip wrote:
I would prefer that it list the Page Alias vs the Page Title.
Where?
Re: Image Picker - Show Page Alias
Posted: Mon Jun 01, 2009 5:48 pm
by runblip
When you access Image Picker in Admin you see two columns. One shows the Page Title, another shows the image name. I would like that Page Title to actually display Page Alias
Re: Image Picker - Show Page Alias
Posted: Mon Jun 01, 2009 6:20 pm
by jmcgin51
MINIMALLY TESTED - TRY AT YOUR OWN RISK
1. To change the name of the "Page" column (if desired), edit line 16 in en_US.php (change to "Page Alias" for example). Not required to make #2 work.
2. To actually show the page alias instead of the page title:
a. Open actiondefaultadmin.php
In line 80, replace c.content_name with c.content_alias
In line 104, replace $row['content_name'] with $row['content_alias']
Re: Image Picker - Show Page Alias
Posted: Mon Jun 01, 2009 7:03 pm
by runblip
jmcgin51 wrote:
MINIMALLY TESTED - TRY AT YOUR OWN RISK
1. To change the name of the "Page" (if desired), edit line 16 in en_US.php (change to "Page Alias" for example)
2. To actually show the page alias instead of the page title:
a. Open actiondefaultadmin.php
In line 80, replace c.content_name with c.content_alias
In line 104, replace $row['content_name'] with $row['content_alias']
Thank you very much, #2 did the trick and seems to work!
Re: [SOLVED] Image Picker - Show Page Alias
Posted: Mon Jun 01, 2009 7:09 pm
by jmcgin51
sorry - I left out a word in the #1 description, which would have made it more clear. I've edited the post...