forcing a <br> on the name - SOLVED! |
Post Reply |
Author | ||
worldofrugs
Senior Member Joined: 24-April-2008 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 22-April-2009 at 1:20pm |
|
The names of our products are all build up the same. Without doing anything to the name, products now show up on the category/searchresults/home/showfeatured/etc.. as followed in the example products I created:
------------------------- ---------------------------------- As you can see it's not to nice to have the size cut in half... I rather would like to see it as this: ---------------------------------- ---------------------------- I can of cos. accomplish this with adding a <br> in the product name (before import), however this also will show up on the product detail pages, so not a great solution. I was thinking.... Since you can do a "replace" function with ASP, I'm searching for where and how to add this... Example I like to implement somewhere: productname_value = replace(productname_value, "rug, ", "rug<br>" This way on the pages where the thumbnails are shown, the name breaks nicely and on the detail pages it remains in 1 line on the top. Any suggestions? Thanks! P.s.: Using PC 3.12a (Did not have time yet to upgrade) Edited by worldofrugs - 22-April-2009 at 2:49pm |
||
worldofrugs
Senior Member Joined: 24-April-2008 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
|
Found the solution
In pcShowProductH.asp around line 16 you will find:
I changed it to the following:
As you can see I renamed it to pDescription2 and put the statement on it. This way I prevent that the statement is applied in for example the little lists at the bottom: best sellers, etc.., that have to show up in 1 line (where pDescription is used as well!). Note: As for the other displays it just has to show 'normal / as-is', no modifications are made to the files: pcShowProductL.asp pcShowProductM.asp pcShowProductP.asp Edited by worldofrugs - 22-April-2009 at 3:13pm |
||
BlackReefDesigns
Newbie Joined: 28-May-2008 Location: San Diego, CA Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|
awesome! Glad you got it worked out
|
||
Joe S.
BlackReef.net |
||
worldofrugs
Senior Member Joined: 24-April-2008 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
|
Thanks BlackReef!
Maybe someone else might want to do something similar and this could help them out |
||
patschraier
Newbie Joined: 29-May-2007 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
|
|
I tried to solve that problem, too, with CSS but it moved everything left. Thanks.
|
||
Pat Schraier
www.patriciaschraier.com |
||
worldofrugs
Senior Member Joined: 24-April-2008 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
|
Hope it works as great for you as it did for me.. Good luck and let me know...
|
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |