Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#301 2011-06-27 13:27:32

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: hak_article_image

With a current version of TxP you don’t need this plugin. The tags txp:images and txp:image_info (type attribute) helps.

Offline

#302 2011-06-27 13:30:44

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: hak_article_image

Axel schrieb:

(…) the image title attribute for some reasons takes the content of the caption field.

This is the normal behavior.

Offline

#303 2011-06-27 18:09:51

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: hak_article_image

I do need the plugin, because I have multiple images attached to the article.
Thats why I asked if there is a way without modifieing the plugin itself to take the image name for the title attribute.


Greetz [Axel]

Offline

#304 2011-06-27 18:42:06

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: hak_article_image

[Axel] wrote:

I have multiple images attached to the article.

<txp:images> supports image lists now (in the article image field or any custom field).

Last edited by Bloke (2011-06-27 18:45:58)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#305 2011-06-28 12:02:55

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: hak_article_image

Thanx Bloke/GugUser,

Somehow I missed that added feature in 4.3!
But still I need to change the title to display the image name instead of its caption.

I know, this is the wrong thread now (feel free to move it) but as it also applies to hak’s plugin I thought it could stay.


Greetz [Axel]

Offline

#306 2011-06-28 12:10:45

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,427
Website GitHub

Re: hak_article_image

[Axel] wrote:

I need to change the title to display the image name instead of its caption.

You could build the img tag by hand, e.g.:

<txp:images>
  <img src='<txp:image_url />' title='<txp:image_info type="name" />' />
</txp:images>

Last edited by Bloke (2011-06-28 12:11:04)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#307 2011-06-28 13:13:16

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: hak_article_image

Thanks again bloke!

that works for me, just without the surrounding images tag, because I use a form to format the images output.

Last edited by [Axel] (2011-06-28 13:15:32)


Greetz [Axel]

Offline

#308 2011-08-15 17:34:30

WebmistressM
Member
Registered: 2011-08-12
Posts: 61

Re: hak_article_image

First off, apologies if a 1.5 month difference between the post before mine and this one is considered “resurrecting a dead thread. I just noticed that the image gallery plugins are not really necessary. However, Im still curious how one would just use the image tags (sans plugin) if they wanted to do say, a carousel like this:

http://www.olsonkundigarchitects.com/Projects/101/Chicken-Point-Cabin
(note the image carousel above the body text, with the big image to the left changing as you click each thumbnail)

It seems TextPattern overall is trying to alleviate bloat in comparison to even CMS tools like Wordpress. So, is it kind of missing the point if I needed a jquery library to achieve the above without using the Text Pattern plugins?

Offline

#309 2011-08-15 17:44:35

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 597
Website

Re: hak_article_image

I just noticed that the image gallery plugins are not really necessary.

Yes, they are if you want them to create a gallery for you. The new TXP tags make it easier to integrate TXP with Javascript and other galleries without using TXP plugins, but you still must use Javascript and TXP tags together to achieve an effect similar to Olson Kundig. It’s just Javascript + Native TXP rather than Javascript + TXP Plugin.

So, is it kind of missing the point if I needed a jquery library to achieve the above without using the Text Pattern plugins?

The previously-mentioned TXP plugins also rely on Javascript. If they don’t, you will need to do without certain special effects.

Last edited by maruchan (2011-08-15 17:44:44)

Offline

#310 2011-08-15 17:54:12

WebmistressM
Member
Registered: 2011-08-12
Posts: 61

Re: hak_article_image

Would Jcarousel suffice. I did kind of do a looksie into this site’s code to see if it was a plugin. Looks like his is up to date with the no-plugins-needed philosophy. Any idea how jcarousel (the standard javascript library) gets integrated into the current version of Text Pattern? I am a bit new to TextPattern so I am curious how javascript (including jQuery) libraries get installed in implemented for things like jcarousel? This would help me set up my image categories since each portfolio item might have 1-3 images.

Offline

#311 2011-08-15 18:37:55

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 597
Website

Re: hak_article_image

JCarousel looks like it only provides a carousel, i.e. thumbnails but no large versions. So you may want to find a script that does both. Example: Gallerific

Textpattern and Javascript in this case don’t actually interact or touch each other. Textpattern is just used to generate the HTML that the Javascript plugin needs to work with.

To install a Javascript library then, it’s the same as working with HTML: just put the script tags in the <head> section of your Textpattern page template.

Take a look at the TXP Tip and see if that helps.

Offline

#312 2011-08-15 18:44:59

WebmistressM
Member
Registered: 2011-08-12
Posts: 61

Re: hak_article_image

Ah, okay. So is there a listing of what javascript interaction (if any) is straight out of the box and where to install javascript libraries needed beyond what Textpattern already uses by default?

Incidentally, I looked up at Gallerific. This page also suggests that Gallerific is obselete in some way, in lieu of the new ImageTags within “core”. gallerific had been one of my first considerations to use for th portfolio image display that I desire.

So would Gallerific be considered a more advanced way to display images (since its more than just plugging in image template tags)?

Last edited by WebmistressM (2011-08-15 18:47:49)

Offline

#313 2011-08-15 18:53:02

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 597
Website

Re: hak_article_image

So is there a listing of what javascript interaction (if any) is straight out of the box

1. None and 2. All — Textpattern’s default website template does not use Javascript. If you want to use any Javascript library, just put the <script> tag you want to use inside your Textpattern page template’s <head> tags.

and where to install javascript libraries needed beyond what Textpattern already uses by default?

You can make a folder in your site (top level folder, not usually under /textpattern) called “js” and upload any scripts to it. Then in your <head> tags you could do something like:

<script type="text/javascript" src="<txp:site_url />js/script-name-here.js"></script>

That would load the file and make it available for use by your website.

but then saw another thread here on the forums about how textpattern’s image tags had evolved

They have but again, Textpattern is just generating HTML. If your Javascript plugin requires some really fancy HTML, maybe you will need a Textpattern plugin. But nowadays the default Textpattern images tags will do most of what a Javascript plugin will need.

Guess Gallerific is beyond a simple setup for images so plugins are still needed?

Correction: Javascript plugins are still needed, not Textpattern plugins. These are two completely different things.

Offline

#314 2011-08-15 18:58:41

WebmistressM
Member
Registered: 2011-08-12
Posts: 61

Re: hak_article_image

Thanks for the clarification on working with javascript. I think something I said confused you into thinking I associated javascript integration requirements with textpattern plugin requirements. I can see that Gallerific no longer needs plugins but I just was asking about the javascript integration portion, not the plugin portion.

For now, the Gallerific info on Txp Tips is not helping due to them informing of the new Image template tags but not showing a new (updated) example of how you work the new tags to your advantage. So, confusion stemmed from that, regarding how to handle Gallerific (since Im coming in right on the heels of the new Image Tag revisions).

Offline

#315 2011-08-15 19:08:35

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 597
Website

Re: hak_article_image

asking about the javascript integration portion, not the plugin portion.

Yep, do the part in the Tip where it says “link to the files below” inside your Textpattern page template’s <head> tags. That will complete the integration.

For now, the Gallerific info on Txp Tips is not helping due to them informing of the new Image template tags but not showing a new (updated) example of how you work the new tags to your advantage.

The tutorial is based on the new tags; they’re right there in the tutorial code. What update do you feel is necessary?

(since Im coming in right on the heels of the new Image Tag revisions).

It’s almost been a year since those tags were introduced, and the TXP Tip on Gallerific was written 5 months ago or so.

Offline

Board footer

Powered by FluxBB