Different text in Category View (Item list) and in Item View

Phoca Panorama - displaying list of panorama images and detail of selected panorama image
berto36
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 03 Nov 2014, 14:44

Different text in Category View (Item list) and in Item View

Post by berto36 »

Hi.
I really love the Phoca Panorama component. Congratulations for it!
I wonder if is possible to have different text in Category view, or Item list, and in Item view. I would like in Category view a short description and in the Item view a longer text.
Thanks in advance.

Roberto
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9095
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Different text in Category View (Item list) and in Item

Post by Benno »

Hi,
perhaps I understand wrong, but this is already possible. Use the description of items and categories... :idea:

Kind regards,
Benno
berto36
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 03 Nov 2014, 14:44

Re: Different text in Category View (Item list) and in Item

Post by berto36 »

Hi,
I haven't explained it correctly. :oops:
I'm talking about the text of the item.
I meant if it's possible to have one text of the item in the Item List, and other text when you enter to view that item.

Roberto
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9095
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Different text in Category View (Item list) and in Item

Post by Benno »

Sorry, I don't understand.. :x
Can you please post some screenshots, to see what you mean.

Kind regards,
Benno
berto36
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 03 Nov 2014, 14:44

Re: Different text in Category View (Item list) and in Item

Post by berto36 »

I'm sorry.

This is the text of the Item in the Item List:
Image

And this is the text of the Item in the Item View:
Image

Is the same text. I would like different text. Or in the Item List only the title of the panorama and the first line of the text, without the rest of the text:
Image

Thanks.

Roberto.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9095
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Different text in Category View (Item list) and in Item

Post by Benno »

Hi,
yes, now I see. This is Item Description in both views.
Sorry, I have no idea to solve this.. :idea:

Kind regards,
Benno
berto36
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 03 Nov 2014, 14:44

Re: Different text in Category View (Item list) and in Item

Post by berto36 »

Well, thanks anyway.

Roberto
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Different text in Category View (Item list) and in Item

Post by Jan »

Hi, I think, for this you should customize the code. To add one more column in to database, e.g. description_long and have two descriptions:

one - standard - e.g. displayed in category view
second - long - displayed in item view

What needs to be done:

- one new column description_long needs to be added to database table (items)
- the form in administration - in item edit needs to be edited - to add the form input field long description
- then the item view should be changed - to load the long description and display it in item view :idea:

Jan
If you find Phoca extensions useful, please support the project
berto36
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 03 Nov 2014, 14:44

Re: Different text in Category View (Item list) and in Item

Post by berto36 »

Hi,
I'll try it, but it seems a bit difficult. Thanks for the clues. I'll post it here if I can do it. :)

Roberto
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Different text in Category View (Item list) and in Item

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply