how can I get the URL variable in modx gallery - gallery

I installed modx gallery and I want to link to the URL I type in when I upload new pictures on the backend. I tried to customize the template but can't find the URL-variable from the upload form:
http://rtfm.modx.com/display/ADDON/Gallery.Gallery.thumbTpl
How would I do this? Thank you.

The placeholder for the URL is [[+url]].
So, call
[[!Gallery &album=`1` &thumbTpl=`myThumbTplChunk`]]
and create chunk called "myThumbTplChunk" with this code:
<div class="[[+cls]]">
<a href="[[+url]]">
<img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
</a>
</div>

Related

How would I remove this from all wordpress posts

In every wordpress post I have code like this -
<img src="http://domain/wp-content/uploads/2016/08/Black-Bosch-Avantixx-HBM13B261B-Electric-Double-Oven-300x266.jpg" alt="black-bosch-avantixx-hbm13b261b-electric-double-oven" width="300" height="266" class="alignright size-medium wp-image-367913" />
Obviously each post is a different name, how can I remove this paragraph inside all posts as I have thousands.
Is there a command I can do using phpmyadmin?
Step by step would be great thanks.
You have try to delete the img? Do you have use some plug-in downloaded from external website? I don't think you need db i think it's something in JS or php if this you can use add to your js file:
$(document).ready(function() {
$(".wp-image-367913").css("display","none")
});
If it's only the code, you need to check your article.php or single.php or your post php page file and see if there are this link write some where.

Search Redirect to wrong Page

Working with SilverStripe I am trying to add search to my website. I have created my own theme, which I am using in my project. Now I am trying to add search in the blog.
In my Page.ss I have added this
<div class="search">
<h3>SEARCH HERE</h3>
$SearchForm
</div>
This code is for adding a search box in the website.
In the config I enable this
FulltextSearchable::enable();
The problem is that it is redirecting me to old theme search page instead of my own theme.

Unable to configure Twitter feed in Drupal site

I have a website in Drupal and I wants same look of twitter widget as in https://www.stanford.edu/ .
There is a module also available in Drupal for Twitter i.e "Drupal feed".
https://www.stanford.edu/ site is mentioned in this module also.
So please help me out so that i can get same look..
Thanks in Advance..
Note : The code i am using is given below.
<a class="twitter-timeline" href="https://twitter.com/tweettestwidget" data-widget-id="603417854055034880" data-chrome="noheader nofooter noborders transparent" data-tweet-limit="1" data-conversation="none">Tweets by #tweettestwidget</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
I used the Twitter module to create a similar twitter feed.
https://www.drupal.org/project/twitter
You can see the feed I created here http://gekkos.com
You can then display the Twitter feed using a View. Then use Views templates to style the output.
E.g. My Views template file was views-view-fields-tweets--block.tpl.php
<div class="tweet">
<p><a target="_blank" href="https://twitter.com/<?php print $fields['screen_name']->content;?>"><?php print $fields['screen_name']->content;?></a> <?php print $fields['text']->content;?> - <em><?php print $fields['created_time']->content;?></em></p>
Then just style the output using CSS.

generate a pdf in wordpress without using the plugin

I am a wordpress developer. I am stuck here with I need to generate a pdf in wordpress without plugin so just let me know how?
<div class="abccenter">
<button class="red_bt margin40">Download PDF</button>
</div>
<div class="abcpostwrapper margintop20">
<div class="abcpostcontent">
on this download button?
You can easily create pdf via MPDF (http://www.mpdf1.com/mpdf/index.php) with simple integeration.

images donot display in my wordpress posts

i try this code to display image in my post in wordpress but image doesnot show in my post
<article class="media">
<h2>About the venue</h2>
<img class="pull-left" src="images/hotels/contempo.jpg" alt="Hotel Contempo"/>
<p>All CAC speaking events located at 309 1st Avenue, in Downtown Seattle..</p>
</article>
is this code a proper way to display images in wordpress ??...i donot want upload image method
if not correct ..how can i write code to display this image?
If you want to show the static images you need to give proper url to the images.
src="/wp-content/themes/your-theme-name/images/hotels/contempo.jpg"

Resources