×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Importing images CAPTIONS

Importing images CAPTIONS 11 years 1 month ago #19967

  • Bryan Gibson
  • Bryan Gibson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Daniel, thanks again for your help via Skype last night with my other issue. This was of huge value.

I will now put this new issue on the forum so everyone can benefit. It concerns image captions.

Is there a way to import image captions from Word Press. There are about 1000 images in our articles all of which have captions!!

Many thanks.

Importing images CAPTIONS 11 years 1 month ago #19972

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Captions...
The problem is - joomla use html in the editor. But it doesn't use all kind of html in the editor. Div tags for example are being stripped off. That is why in the past we said -> we won't try to create any captions as there is no accepted/normal way that this works in joomla. There is simply no caption...

I agree that it is nice to have them in joomla as well. So I had a look at how bootstrap does it: twitter.github.com/bootstrap/components.html#thumbnails

And since joomla 3.0 uses the bootstrap marker I decided to migrate the captions.
So now the syntax that we generate out of the wordpress caption is this
<span class="thumbnail"><img...><span class="caption">description</span></span>

On joomla 3 this is already styled. On joomla 2.5 one would need to work on the css.
I think that this is an acceptable solution.

Go over here:
compojoom.com/component/ars/repository/dev-cmigrator

Download the latest version, reimport your articles and then parse them again. This time you should have the caption text.

Kind regards,
Daniel

Importing images CAPTIONS 10 years 4 months ago #23653

  • Justin Throngard
  • Justin Throngard's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Apologies if I should make a new thread here but my problem is also about importing image captions.

I've parsed my content and the captions have been converted into the <span class="thumbnail">. Great! My problem though is that the original images were surrounded by <a href="...."> containers. Now after parsing the containers have ceased to exist thus eliminating the point of the image.

Original post: http://www.gll-getalife.com/2013/11/winter-2013-style-guide-accessories/

Original container:
<div id="attachment_3477" style="width: 500px" class="wp-caption aligncenter"><a title="Rings" href="http://www.amazon.com/dp/B007TNEIK4/ref=as_li_ss_til?tag=lifestyle0bc-20&amp;camp=0&amp;creative=0&amp;linkCode=as4&amp;creativeASIN=B007TNEIK4&amp;adid=1DSRPHQF0YW04FAZ8MEY" target="_blank" rel="nofollow"><img class="size-full wp-image-3477" alt="Ring " src="http://www.gll-getalife.com/wp-content/uploads/2013/11/Black-Ring.png" width="490" height="515"></a><p class="wp-caption-text">Clean black ring. Your rings don’t need to be over-the-top. Guys wearing rings in general makes a statement. But if they are gaudy and cheesy looking they can give the statement ‘try-hard’. So in general keep them clean and classy. Wearing 2+ of these rings would work well for some guys too.&nbsp;<strong><span style="color: #993366;">#Affordable</span></strong></p></div>

New post: http://192.185.143.110/~gllgetal/index.php/entry/20-good-looking-loser-s-winter-2013-style-guide-accessories-shoes

New container:
<p><span class="thumbnail"><img alt="Black Loafers" src="http://192.185.143.110/~gllgetal/images/cmigration/Rock-Shoe.png" width="486" height="402"> Loafer style shoes are also in this season. You have to have at least one pair of basic black dress shoes in your closet. These are comfortable and won't go out of style so you can wear them forever. Chris owns a pair of Rockport shoes that he got in 12th grade and still can wear them.<span class="caption"></span></span>
</p>

Importing images CAPTIONS 10 years 4 months ago #23774

  • Justin Throngard
  • Justin Throngard's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Hello? Can anyone help with the above?

Importing images CAPTIONS 10 years 4 months ago #23775

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Justin,
Can you post the code from the editor? [caption bla bla? Can you perhaps also provide me with a copy of the db for testing purposes?

Thanks,
Daniel

Importing images CAPTIONS 10 years 4 months ago #23781

  • Justin Throngard
  • Justin Throngard's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Origninal code from Wordpress:
[caption id="attachment_3477" align="aligncenter" width="490"]<a title="Rings" href="http://www.amazon.com/dp/B007TNEIK4/ref=as_li_ss_til?tag=lifestyle0bc-20&amp;camp=0&amp;creative=0&amp;linkCode=as4&amp;creativeASIN=B007TNEIK4&amp;adid=1DSRPHQF0YW04FAZ8MEY" target="_blank" rel="nofollow"><img class="size-full wp-image-3477" alt="Ring " src="http://www.gll-getalife.com/wp-content/uploads/2013/11/Black-Ring.png" width="490" height="515" /></a> Clean black ring. Your rings don't need to be over-the-top. Guys wearing rings in general makes a statement. But if they are gaudy and cheesy looking they can give the statement 'try-hard'. So in general keep them clean and classy. Wearing 2+ of these rings would work well for some guys too. <strong><span style="color: #993366;">#Affordable</span></strong>[/caption]

What database copy do you want? Joomla or Wordpress?

Importing images CAPTIONS 10 years 4 months ago #23782

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Wordpress, I'll migratre myself and do the parsing on my dev. machine.
Just by looking at the code - it should work. Our reg. expression should take all the text between the caption tag, but maybe I'm wrong... I remember I had a lot of headaches with this reg. expression... You can create a private ticket and attach your db there or you can send it per mail to This email address is being protected from spambots. You need JavaScript enabled to view it.

Regards,
Daniel

Importing images CAPTIONS 10 years 4 months ago #23785

  • Justin Throngard
  • Justin Throngard's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Ok. I've emailed the database. Thank you.

Importing images CAPTIONS 10 years 4 months ago #23811

  • Justin Throngard
  • Justin Throngard's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Any luck with that database? Did you receive it?

Importing images CAPTIONS 10 years 4 months ago #23914

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Replied to your ticket today.
Regards,
Daniel

Importing images CAPTIONS 10 years 2 weeks ago #25648

  • Andre Gross
  • Andre Gross's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Hi,
Daniel, I have the same problem.if you remember, I opened a private ticket few days ago and you helped me with the migration. Today I just discovered that all captions appear as text in joomla articles. Is there a quick /automated solution for this?
Please advise me.
Thanks.

Importing images CAPTIONS 10 years 2 weeks ago #25649

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Have you run the parsing actually? The parsing actually transforms the wordpress tags to the joomla equivalent one.
The following user(s) said Thank You: Andre Gross

Importing images CAPTIONS 10 years 2 weeks ago #25650

  • Andre Gross
  • Andre Gross's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Thank you man, that did the job :)
  • Page:
  • 1
Time to create page: 0.126 seconds