Problem About Used Simple Module Create url image

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
scubindu

Problem About Used Simple Module Create url image

Post by scubindu »

Hello. I've made a simple module with CTLModuleMaker in CMS made simple, in the template I call the necessary items like this:

Code: Select all

{assign var="item" value=$itemlist[0]}
{$item->name->Label()}: {$item->name}<br/>
{$item->image->Label()}: {$item->image}<br/>
{$item->image_text->Label()}: {$item->image_text}<br/>
{$item->image_desc->Label()}: {$item->image_desc}<br/>
{$item->img_thumb->Label()}: {$item->img_thumb}<br/>
{$item->catagory->Label()}: {$item->catagory}<br/>
as you can see i call an image with {$item->image} but when i try to do something like this {$item->url} it returns the url of the whole page I'm trying to get the url of the image not the whole page. any suggestions what i can do??

Ads: Dịch vụ fpt bao gồm Truyền hình FPT với kho phim chuẩn HD miễn phí, dịch vụ dang ki internet fpt, truyền hình tương tác xem lại giúp các bạn không bỏ lỡ những chương trình mà bạn yêu thích, trực tiếp giải bóng đá ngoại hạng Anh, âm thanh 5.1, độ nét cao, tiếng anh cho trẻ em, nhạc số, phim hoạt hình dành cho thiếu nhi, ngoài ra chúng tôi còn chuyên cung cấp dịch vụ lắp mạng fpt tây hồlắp mạng fpt thanh xuânlắp mạng fpt thanh trì cùng với các thiết bị đầu thu FPT nhỏ gọn mang cả thế giới giải trí đến tivi nhà bạn. Đăng ký lắp đặt Truyền hình FPT ngay hôm nay để nhận những khuyến mãi hấp dẫn. khi quý khách lắp mạng fpt thường tínlắp mạng fpt ba đìnhlắp mạng fpt cầu giấy bạn sẽ nhân được thông tin khuyến mãi Khách hàng đã có đường truyền internet của FPT muốn được trải nghiệm dịch vụ tốt nhất.
Last edited by scubindu on Fri Aug 07, 2015 7:03 am, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Problem About Used Simple Module Create url image

Post by velden »

Print the contents of $item:

Code: Select all

<pre>{$item|print_r}</pre>
Maybe it shows you the needed info. Sometimes 'shortcuts' exist for custom fields, though not for properties that are already available by default.

So maybe you need to use something like: {$item->fields.url->value}

Disclaimer: I never used that module.
Locked

Return to “Modules/Add-Ons”