Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2019-07-03 17:45:53

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 989
Website

Re: smd_imagery: for photographers, photobloggers and category geeks

Oops, here are the instructions:

  1. Using the “Categories” panel under “Content”, create a new image category for this post; Example: 2019-07-02
  2. Using the “Images” panel under “Content”, upload the post images and tag them with the category you created for this post.
  3. Open article editor for this post.
  4. If you don’t see it already, toggle “Article image” field to visible by clicking on the heading.
  5. Select the “Manage” button under “Article Image” field.
  6. Select the radio button labeled “By category”.
  7. Select category you created for this post from first select field.
  8. Click the button labeled “Fetch” to load the images tagged with the given category.
  9. Drag and drop images to reorder them. Click the red “x” icon to remove any images you don’t want.
  10. If you don’t see it already, enter this in the “Template” field:
<notextile>
<txp:picture class="[ classes ]" image_name="{smd_imagery_name}" caption="" />
</notextile>
  1. Select and copy the text appearing in the “Result” field. Paste this into the “Body” field.
  2. Edit the class and caption attributes as needed.

Offline

#12 2019-07-04 08:51:33

ibadullah
Member
From: Kabul, Afghanistan
Registered: 2017-09-16
Posts: 38

Re: smd_imagery: for photographers, photobloggers and category geeks

Hi,
i have a news website and every day i have more then 20 news and every news have the image, it is very difficult to find out the image when searching for a particular image in the Write panel in the article image section, is the there any plugin available to show all the images as boxes and after single click the image should select in the write panel.

Last edited by ibadullah (2019-07-04 09:06:16)

Offline

#13 2019-07-05 10:59:38

etc
Developer
Registered: 2010-11-11
Posts: 3,391
Website

Re: smd_imagery: for photographers, photobloggers and category geeks

Hi,

you can try abc_article_image, it seems to do what you need. It also allows for images upload directly on Write tab.

Offline

#14 2019-07-05 16:13:25

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,812
Website

Re: smd_imagery: for photographers, photobloggers and category geeks

johnstephens wrote #318631:

Are there alternatives that would make a simpler workflow?

I can’t think of a way to offer a class selection without over-complicating the interface. If you can think of one, then please let me know.

In the meantime, although not a direct replacement for classes, I am tinkering with the notion I had originally of multiple templates. In short, a select list above the Template textarea that allows you to define any number(ish – max size of the prefs data column notwithstanding) of templates, name them and switch between them. So you could make one template for each class as a one-off exercise and then just pick the one you want to get the code.

On the back of that, I am considering the notion of global templates. So, perhaps, Publisher accounts would have an additional checkbox when creating a template to make it local to their account or to publish it as “global” for all users. It should then be possible to combine this master list with each user’s own list (and in true Txp style, the user plates will override a master template if it has the same name). Local users would not be able to delete these global templates, but Publishers can.

I’ll have to see if that’s possible. But I’ll work on the former modification first and see how far we can go.

P.S. I would advise against smd_macros from 4.7+ and use short codes instead, which are native and way more flexible.


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

Txp Builders – finely-crafted code, design and Txp

Offline

#15 2019-07-06 05:36:31

ibadullah
Member
From: Kabul, Afghanistan
Registered: 2017-09-16
Posts: 38

Re: smd_imagery: for photographers, photobloggers and category geeks

etc Developer!
Thank you very much for such wonderful plugin, it work fine in the previously uploaded images but when you want to upload direct image in the write panel it doesn’t show the image when you save the article. can you please help me in this mater.
i need to upload image directly in the write panel and it should show the image in the preview of article.

Offline

#16 2019-07-07 07:25:40

etc
Developer
Registered: 2010-11-11
Posts: 3,391
Website

Re: smd_imagery: for photographers, photobloggers and category geeks

ibadullah wrote #318648:

etc Developer!
Thank you very much for such wonderful plugin, it work fine in the previously uploaded images but when you want to upload direct image in the write panel it doesn’t show the image when you save the article. can you please help me in this mater.
i need to upload image directly in the write panel and it should show the image in the preview of article.

Could you provide more details, please? The standard plugin’s workflow is the following:

  1. under Article image tab click (or drag) on Upload zone to add some image(s). Their previews are shown in this zone, but the images are not yet uploaded.
  2. save the article.
  3. the images are uploaded and their ids added to Article image field. Their thumbnails are shown under the input box.

Is your experience different? Note that if you click on Preview article tab before saving the article, the newly added images preview will be emptied. This will be fixed in the upcoming custom fields branch.

Offline

Board footer

Powered by FluxBB