APF Bridge Demo And Development Site

APF Bridge Support Forum
Welcome, Guest
Please Login or Register.
Lost Password?
Re:Display only the picture? (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Re:Display only the picture?

#238
kailew (Visitor)
Display only the picture? 2007/05/12 13:48  
Hi Dean,

I'm using your plugin and try to find a way to display only the picture (with a link) of a product. Possible? I'm not sure how to use templates ...

Kai
  The administrator has disabled public write access.
#239
Dean Marshall (Visitor)
Re:Display only the picture? 2007/05/12 15:36  
Certainly it is possible.
Firstly create a new template set - within MrRat's APF script's /templates/ folder create a folder called /templates/test/ (for example).

Now within here create your own version of the specific template you need to 'override' for example item.template

The specific template variables available to you are listed in a /docs/ folder within your APF download (from MrRat's script not my bridge). Or you can copy across the item.template file from the /default/ template set as a starting point.

Now when you call the plugin be sure to specify you 'new' template set.

I'm typing all of this from memory - that is why I am being vague - if this isn't enough of a pointer then just shout, I reallyshould write up more of this stuff anyway.

Dean
  The administrator has disabled public write access.
#240
kailew (Visitor)
Re:Display only the picture? 2007/05/12 19:42  
Hi Dean,

I followed your instructions. I've created a folder in the templates folder called itempic and copied the templates. Then I changed the item-template to

Code:

 <div style="float:left; font-size:x-small; text-align:center;"><a href="%%my_large_image_url%%"><img alt="%%store%% : %%Title%%" border="1" %%ImageUrlMediumHeight%% %%ImageUrlMediumWidth%% src="%%ImageUrlMedium%%" /></a></div>



and then I put into my code the following line (sure with the right brackets ...):

Code:

 [APF Action='ItemInclude' templates='itempic' ItemId='3937406271' locale='de']



but the're always all the complete item informations. It looks for me as there is another template which is used to display the item. The're also some english phrases but 'I'm using german.

I would show you the page, but I don't want to publish the url right now.

Kai
  The administrator has disabled public write access.
#243
Dean (Visitor)
Re:Display only the picture? 2007/05/13 00:48  
I'm just looking over the documentation - I am sure I have documented this previously but on a quick look I don't see where - I hate it when that happens.

$templates = mosGetParam( $attribs, 'Templates', 'include');
$linktemplates = mosGetParam( $attribs, 'LinkTemplates', 'default');


[APF Action='ItemInclude' templates='itempic' ItemId='3937406271' locale='de' Templates='itempic' LinkTemplates='default']

The 'Templates' variable specifies a template set - assuming you are not using the template set specified in the Plugin's configuration screen.

The 'LinkTemplates' variable controls what you see after clicking though links produced by the plugin - for example showing 'normal' APF Store pages if someone clicks through.

Hope that helps.

Just had a thought - maybe I detailed some of this on the 'Plugin Examples pages' available in the main menu on the left.

Dean
  The administrator has disabled public write access.
#244
kailew (Visitor)
Re:Display only the picture? 2007/05/13 07:38  
Hi Dean,

wow, it is case sensitive ... ! I didn't expect that, but it is a difference to write "Templates" or "templates" ....

I've seacherd now for hours but there is still a rest besides the picture. I have the title, I have a search box,I have these colour bars - and absolutely no idea where this stuff is from.

The're three possibilities:

- apf_main.pm
- amazon_products_feed.cgi

and the default item-template.

But I changed something in each of these files and reloaded the page - but couldn't localize this stuff ...

Kai
  The administrator has disabled public write access.
#245
kailew (Visitor)
Re:Display only the picture? 2007/05/13 11:36  
OK Dean,

found the solution ... I thought.

At first it was a cache problem. All queries are cached and the output therefore was the same despite my changes. I would like to stop caching but found no way. Set the duration to zero didn't work.

The stranges stuff was from the page-template which is used also to display an item.

So I changed it that there is only the variable left

Code:

 %%products_html%% 



After some hours I'm now able to display only the picture. But, there's always the "but", when you click on that picture you get only the picture and not the whole product informations ...

Any Ideas?

Kai
  The administrator has disabled public write access.
#246
kailes (Visitor)
Re:Display only the picture? 2007/05/13 12:26  
Dean,

I think, I did it.

You have to replace


Code:

 %%my_large_image_url%%



with

Code:

 %%item_url%%



And now - wooow - you will be redirected to the item page.

Maybe you write a little tutorial or put it in your examples because other people like to use this. It is nice because you get pretty pictures in your text from the cd covers which are leading to your amazon shop.

Kai
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
© Copyright 2007 Best of Joomla, Powered by FireBoardget the latest posts directly to your desktop

Bulletproof Themes Bulletproof Themes UK Dean Marshall Mambo and Joomla Consultant | Joomla and Mambo consultants Joomla Amazon Component British English crossword and anagram solver British English crossword and anagram solver Professional Researcher Professional Researcher
The JoomlaSphere | The JoomlaSphere | The JoomlaSphere | The JoomlaSphere JoomlaMonkey | JoomlaMonkey | UK Joomla Consultancy Services Joomla Consultancy Services UK Joomla Consultancy Services Joomla Consultancy Services
Buy gifts for women UK Buy gifts for men UK find gifts for men UK Buy gifts for women UK Buy gadgets Buy gifts for gays UK Buy gifts for gays UK Buy toys in the UK
The Mambo Foundation Mambo Tracker Mambo Foundation Membership Mambo Foundation Home Download The Source Forum Donate Newsroom Mambo Love Mambo Documentation Alternative documentation Software Forge Bug Tracker SVN Instructions Mambo on the Forge Joint Commercial Developers Extensions for Joomla and Mambo Amazon Products Feed Bridge Joomla Amazon Components - Amazon Products Feed Bridge Million Dollar Pet Pix - Make your pet a star