Intro text with Image only on List view of blog?

More
12 years 2 months ago #35408 by jimijon
Here is my dilemma.


I would like to display the image that the category listing uses.

"Extract from Main Text" ... BUT... I don't want the image to reappear as the actual image reference in the intro text area.

Can that be done?

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35410 by ggppdk
So
you want to display the introtext
1. uncut
2. and without stripping HTML

but you only want to strip images out of it?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35412 by jimijon
Yes.

I want to display the intro text. I don't want "read more."

I want to use the category's template blog list display to extract an image from the article text. However, the image will be in the intro text already:

Title of Article

Quick intro description
<img reference>
============== read more
Full Description
<video>


1) When going into the article do not show intro text. This works.

But this is how I want to show up as a listing:

Next the Blog listing:

Title of Article 1
<img reference from cat blog template> Short Intro description
categories:a,b,c tags: t1,t2

...

Title of Article X
<img reference from cat blog template> Short Intro description
categories:a,b,c tags: t2,t3

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35426 by ggppdk
Disable strip and cut in blog template parameters
(duplicate blog template before modifying)
and in file category_items.php of the duplicated blog template:

Replace:
echo $items[$i]->fields->display;
with
$descr_noimg = preg_replace("/<img[^>]+\>/i", " ", $items[$i]->fields->display);
echo $descr_noimg;

For more information about the replacement google it ...

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35433 by jimijon
That worked and now I get all my images in.

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #35436 by micker
that solved ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.350 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save