9 years ago
Topic

Hello all,

I am new to Seblod and am enjoying the power. I have a picture that I want to link to a url. The url is entered into another field in the app and all I want to do is know how to connect the shown image with the link in the url.  I.E. a picture of a book which if you click on it takes you to the page where you can purchase it, and the page is for that individual book but entered from the form.

Thank you in advance, I know I have a lot to learn.

Get a VIP membership
9 years ago
12
Level 1

Hello!

You can use one field in the another. Click on Button [2] for Typography settings, then on html at the image field and on the + Sign.

Type in <a href="/ckk->get('yoururlfield')->value;"><img src="/*value*"></a>

Regards,

Elisa

9 years ago
11
Level 2

Hello,

Thanks for the great information, unfortunately I am still doing something wrong.  my url is stored in a link type field with the name store_link  and I used the html link as you entered it :  <a href="/ckk->get('store_link')->value;"><img src="/*value*"></a> and I just get a link that looks line this

http://www.on.....od.com/joomla33/ckk->get(`store_link`)->images/bookcovers/72/ahnentafels.jpg;

this part http://www.on.....od.com/joomla33/ being the development site and not the destination.

as I said I am a noob and obviously need to learn more of this cck. 

Thanks in advance for all the help.

Rolf

9 years ago
10
Level 3

Hello!

You have to type in: <a href="/ckk->get(store_link')->value;"><img src="/*value*"></a>

please retry :)


9 years ago
9
Level 4

Sorry: <a href="/cck->get(store_link')->value;"><img src="/*value*"></a>

Please remove / before cck and befor *value* it´s pasted automaticly in the forum.

9 years ago
8
Level 5

hI,

No apologies needed, you are helping me and I appreciate it greatly. I put it in exactly as specified in your second post click 2 and choose html in typography click plus in the Cover Image field minus the /'s, and the result I recieved is:  http://www.ona....od.com/joomla33/cck->get(store_link')->value;   This is the link value I get where http://www.ona....od.com/joomla33/ is the current site and the link should look like  http://www.ear...ary.com/cart/index.php?main_page=product_info&cPath=6&products_id=4  as this is that is what is entered in store_link field in the Default link section of the link field type.

Thank you 

Rolf

9 years ago
2
Level 6

Please contact me on skype, maybe we can solve it together. skype name: designbengel

9 years ago
1
Level 7

Hello,

Sorry, don't have skype. 

Thanks

9 years ago
0
Level 8

so elisa@designbengel.de :-)

46 Posts
Castor
9 years ago
4
Level 6

Hi rolfcarol,

The proposal from Elisa seems to be ok. Pay attention to the syntax:

<a href="$cck->get('store_link')->value"><img src="*value*"></a>
9 years ago
3
Level 7

Hi Castor,

entered your text exactly and got this:

Fatal error: Cannot access empty property in /public_html/joomla33/plugins/cck_field_typo/html/html.php on line 134

thanks,

Rolf

46 Posts
Castor
9 years ago
2
Level 8

Hi rolfcarol,

pay attention to the dollar-sign just before cck->get... and the quotation marks

9 years ago
1
Level 9

Hello castor,

copy and pasted it, so that it is exact. that was the error I got.

Thanks again for all your help.

Rolf

7 years ago
0
Level 10

this is what worked for me, the other examples caused an error.

<a href="/$cck->getLink('cr_resource_link')"><img src="/*thumb1*"></a>Text
Get a Book for SEBLOD