Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2019-06-06 19:21:05

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,196
Website

Offline

#12 2019-06-08 11:03:27

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 30

Re: Textpattern mention in the Goolge AMP project website

philwareham wrote #318401:

You can use a shortcode in Textpattern 4.7 onwards for this (like we do on the Textpattern.com website).

See the following 3 files:

github.com/textpattern/textpattern-com-website/blob/master/src/templates/forms/shortcodes/media_image.txp

github.com/textpattern/textpattern-com-website/blob/master/src/templates/forms/misc/images.txp

github.com/textpattern/textpattern-com-website/blob/master/src/templates/forms/misc/images_amp.txp

And how to use the shortcode is here.

Hope that helps!

Thank you! It will work when I have only one article image via txp:article_image (am I right?) but what if I would add images in a text directly?


I know, my english is horrible

Offline

#13 2019-06-08 17:50:00

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,295
Website

Re: Textpattern mention in the Goolge AMP project website

Saldacenkaw wrote #318409:

Thank you! It will work when I have only one article image via txp:article_image (am I right?) but what if I would add images in a text directly?

Hi Saldacenkaw,
I think that the code as is, does not check for an article image… but I might be missing something after a long day’s work. You can use it in the article by typing the <txp::media_image id="41, 42, 50" /> tag as described in the last link Phil posted.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

#14 2019-06-09 15:59:55

Saldacenkaw
Member
Registered: 2006-12-28
Posts: 30

Re: Textpattern mention in the Goolge AMP project website

I’ve seen posts on textpattern.com and it works correctly, I should figure it out. Thank you, guys!


I know, my english is horrible

Offline

Board footer

Powered by FluxBB