Display only results from one tag

Permalink Browser Info Environment
Hi
I would need to display just the results from one tag on a page. Is there a way to accomplish this?

Type: Discussion
Status: Archived
pixeljunkie
View Replies:
Parasek replied on at Permalink Reply
Parasek
Hi,

not currently, but tommorow I will upload version where you can do something like that (display images only with specific tags).
pixeljunkie replied on at Permalink Reply
pixeljunkie
Wow, that would indeed be neat! Thank you. What about adding an e-mail-link to the image description? Could this be done? I have a few projects coming up where a contact link is required ...

Tx
Parasek replied on at Permalink Reply
Parasek
Where do you want do display that email? What template? Do you want to display only email in description or additional words/strings etc.?

Depending on that, maybe modyfying custom template would be enough.
I doubt i'll add another field to image. But with using regex/string replace functions in view, you can modify descriptions quite easily,
pixeljunkie replied on at Permalink Reply
pixeljunkie
Hi, my client/s would like to display their e-mail underneath the image on the masonry-card template. And how could I change image dimensions, since their profile pics come in vertical portrait dimensions ...

Tx
Parasek replied on at Permalink Reply
Parasek
New version is available. There are two new options below "Displayed Tags" field.

##### 1.2.7
- Now, if you fill "Displayed Tags" field, only images having one of selected tags will be shown (you can bypass it by checking "Force displaying all selected Images" option)
- Now, by default, single tag will not be displayed (unless "Force displaying single Tag" option is checked)


-------------

To modify template:

1. Copy content of
packages/grand_gallery/blocks/grand_gallery/view.php
into
packages/grand_gallery/blocks/grand_gallery/templates/masonry_cards_custom.php

2. Change template of your block to masonry_cards_custom

3. Edit your block, in "Settings" tab select "masonry_cards" in "Basic Template"

4. In masonry_cards_custom.php find "gg-item-card-text-description" div and modify it to your needs, for example:

<div class="gg-item-card-text-description"><a href="mailto:<?php echo h($image['view_description']); ?>"><?php echo h($image['view_description']); ?></a></div>


-------------

You can change dimensions of images in "Settings" tab after clicking "Enable custom settings for this block.". Dimensions can also be changed in dashboard globally if you wish.
pixeljunkie replied on at Permalink Reply
pixeljunkie
Thanx a lot for your brilliant support :D I was able to solve it that way. Just one more question: What would I need to do to add an extra line for the email-addres in the form (ie. have an image, a descripion (name and position in the company) plus the mail-address underneath)?

Would you be willing to build me such a template (against invoice, of course).

Tx
Parasek replied on at Permalink Reply
Parasek
Do you want to retain ability to upgrade Grand Gallery package?

There are two ways to do it:

1) Add another text field/fields under "Description..." field when editing block.
It will require modifying some files other than creating custom template.
So you can't upgrade package in that case, because you will lost your custom code.

2) Filling "Description..." fields like that (separate email and description by pressing enter):
example@email.pl
Your image description etc.

Then in your custom template, you can use php function explode() to divide description into email and actual description.
This way you will be able to upgrade package in future.
pixeljunkie replied on at Permalink Reply
pixeljunkie
Hi - thank you for putting you mind to this. I was able to convince my customer to rest content with both name and company function in the title and the email in the description. Option 2 is not very client-friendly in my case, as they have different people filling content with little cms-knowledge. But thanky for the great support.

One more thing: Are there any known multilingual issues?
pixeljunkie replied on at Permalink Reply
pixeljunkie
I have sent you a private message ...

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210

# Database Information
Version: 5.7.29-1
SQL Mode: NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Breadcrumb Trail Page Links (1.1), EU Cookie Law (1.1.2), Framework Theme (1.7.7), Grand Gallery (1.2.6), Honest Websites Back To Top (1.1.0), Instafolio (1.7), More Block Templates (0.9.7), Responsive Embed (1.0.1), Social Media Meta Tags (1.0.3)

# concrete5 Overrides
blocks/autonav/templates/Navigation Fusszeile/view.php, blocks/autonav/templates/Navigation Fusszeile, blocks/autonav/templates/Mobile Sidenav/view.php, blocks/autonav/templates/Mobile Sidenav, blocks/autonav/templates/Breadcrumb Nav/view.php, blocks/autonav/templates/Breadcrumb Nav, blocks/autonav/templates/Hauptmen� oben/view.php, blocks/autonav/templates/Hauptmen� oben, blocks/autonav/templates, blocks/autonav, blocks/page_title/templates/Titel mit Byline.php, blocks/page_title/templates, blocks/page_title, blocks/express_entry_list/templates/ausflugsziele_en.php, blocks/express_entry_list/templates/ausflugsziele_sp.php, blocks/express_entry_list/templates/ausflugsziele_de.php, blocks/express_entry_list/templates, blocks/express_entry_list, blocks/page_list/templates/archive.php, blocks/page_list/templates/thumbnail_links.php, blocks/page_list/templates, blocks/page_list, blocks/topic_list/templates/themenfilter.php, blocks/topic_list/templates, blocks/topic_list, themes/campinginterlaken/contained_sm-banner.php, themes/campinginterlaken/images/logo_small.png, themes/campinginterlaken/images/Thumbs.db, themes/campinginterlaken/images/logo_full.png, themes/campinginterlaken/images, themes/campinginterlaken/view.php, themes/campinginterlaken/elements/header.php, themes/campinginterlaken/elements/footer-404.php, themes/campinginterlaken/elements/header_video.php, themes/campinginterlaken/elements/header-404.php, themes/campinginterlaken/elements/footer.php, themes/campinginterlaken/elements, themes/campinginterlaken/site.php, themes/campinginterlaken/home.php, themes/campinginterlaken/page_forbidden.php, themes/campinginterlaken/animate.css, themes/campinginterlaken/js/modernizr.js, themes/campinginterlaken/js/main.js, themes/campinginterlaken/js/bootstrap-better-nav.js, themes/campinginterlaken/js, themes/campinginterlaken/campingprofile.php, themes/campinginterlaken/home_intro.php, themes/campinginterlaken/contained.php, themes/campinginterlaken/page_not_found.php, themes/campinginterlaken/thumbnail.png, themes/campinginterlaken/css/presets/defaults.less, themes/campinginterlaken/css/presets, themes/campinginterlaken/css/styles.less, themes/campinginterlaken/css/bootstrap/js/npm.js, themes/campinginterlaken/css/bootstrap/js/bootstrap.js, themes/campinginterlaken/css/bootstrap/js/bootstrap.min.js, themes/campinginterlaken/css/bootstrap/js, themes/campinginterlaken/css/bootstrap/css/bootstrap-theme.min.css, themes/campinginterlaken/css/bootstrap/css/bootstrap.css.map, themes/campinginterlaken/css/bootstrap/css/bootstrap-theme.css.map, themes/campinginterlaken/css/bootstrap/css/bootstrap.css, themes/campinginterlaken/css/bootstrap/css/bootstrap-theme.css, themes/campinginterlaken/css/bootstrap/css/bootstrap.min.css, themes/campinginterlaken/css/bootstrap/css, themes/campinginterlaken/css/bootstrap, themes/campinginterlaken/css/404.css, themes/campinginterlaken/css, themes/campinginterlaken/not_contained.php, themes/campinginterlaken/default.php, themes/campinginterlaken/page_theme.php, themes/campinginterlaken/team.php, themes/campinginterlaken, themes/campingregioninterlaken/view.php, themes/campingregioninterlaken/elements/header.php, themes/campingregioninterlaken/elements/footer_bottom.php, themes/campingregioninterlaken/elements/header_top.php, themes/campingregioninterlaken/elements/header_original.php, themes/campingregioninterlaken/elements/footer.php, themes/campingregioninterlaken/elements, themes/campingregioninterlaken/description.txt, themes/campingregioninterlaken/home.php, themes/campingregioninterlaken/page_theme_original.php, themes/campingregioninterlaken/js/scrollMonitor.js, themes/campingregioninterlaken/js/parallax.min.js, themes/campingregioninterlaken/js/sticky.js, themes/campingregioninterlaken/js/script.js, themes/campingregioninterlaken/js/bootstrap.min.js, themes/campingregioninterlaken/js, themes/campingregioninterlaken/campingprofile.php, themes/campingregioninterlaken/two-columns.php, themes/campingregioninterlaken/thumbnail.png, themes/campingregioninterlaken/img/background-header_alt.jpg, themes/campingregioninterlaken/img/background-header3_alt.jpg, themes/campingregioninterlaken/img/background-header.jpg, themes/campingregioninterlaken/img/background-header3.jpg, themes/campingregioninterlaken/img, themes/campingregioninterlaken/css/presets/defaults.less, themes/campingregioninterlaken/css/presets, themes/campingregioninterlaken/css/styles.xml, themes/campingregioninterlaken/css/main.less, themes/campingregioninterlaken/css/build/variables.less, themes/campingregioninterlaken/css/build/animation.less, themes/campingregioninterlaken/css/build/mixins.less, themes/campingregioninterlaken/css/build/nav.less, themes/campingregioninterlaken/css/build/element.less, themes/campingregioninterlaken/css/build/typography.less, themes/campingregioninterlaken/css/build/lightbox.less, themes/campingregioninterlaken/css/build/redactor.less, themes/campingregioninterlaken/css/build/customtemplates.less, themes/campingregioninterlaken/css/build/inherit.less, themes/campingregioninterlaken/css/build/fonts/defaults.less, themes/campingregioninterlaken/css/build/fonts, themes/campingregioninterlaken/css/build/layout.less, themes/campingregioninterlaken/css/build, themes/campingregioninterlaken/css/bootstrap.css, themes/campingregioninterlaken/css, themes/campingregioninterlaken/right_sidebar.php, themes/campingregioninterlaken/blank.php, themes/campingregioninterlaken/left_sidebar.php, themes/campingregioninterlaken/default.php, themes/campingregioninterlaken/three-columns.php, themes/campingregioninterlaken/full.php, themes/campingregioninterlaken/page_theme.php, themes/campingregioninterlaken/four-columns.php, themes/campingregioninterlaken

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.3.17

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, htscanner, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, OAuth, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, redis, Reflection, session, shmop, SimpleXML, soap, sockets, sodium, SPL, sqlite3, ssh2, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 512M
post_max_size - 7M
upload_max_filesize - 7M
ldap.max_links - Unlimited
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.