Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / [RESOLVED] Problem with getting field name

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

[RESOLVED] Problem with getting field name

More
7 years 8 months ago - 7 years 8 months ago #26388 by raph17
I used on view.html (detail view) this code
.$this->field->showFieldValue($this->content,$this->fields["ad_kindof"])
When i use this code it gives me an error.
If i use
$content->ad_kindof

the error disapear but it displays the ADSMANAGER_KINDOF1 instead of the Sale word.

Is a fix for this?
Last edit: 7 years 8 months ago by loic.
More
7 years 8 months ago #26396 by juloaadmin
Replied by juloaadmin on topic Problem with getting field name
you should not put a dot before $this.
But I think this is just a typo error

in the first line
you should replace $this->content by $content, if the ad content is working with $content->ad_kindof
More
7 years 8 months ago - 7 years 8 months ago #26398 by raph17
Replied by raph17 on topic Problem with getting field name
Call to a member function showFieldValue() on null

I get this error when i try to get field value like u wrote .

Solved in other way this but not i see the ads id is not taken in title with
$content->id
In detail page is inserted but in page title not.Any advice?
Last edit: 7 years 8 months ago by raph17.
More
7 years 8 months ago #26406 by juloaadmin
Replied by juloaadmin on topic Problem with getting field name
In the details view, the content, is it $this->content
in the list view the contents are in $this->contents
there is a loop like foreac($this->contents as $content) {
so in the loop you can do $content

Are you able to change the page title ? (I mean added any other text) ?
More
7 years 8 months ago #26415 by raph17
Replied by raph17 on topic Problem with getting field name
I solved this issue adding JText and variable.
More
7 years 8 months ago #26423 by loic
Replied by loic on topic Problem with getting field name
Hello,

I update that topic to resolved.

Best regards.
Moderators: perry
Time to create page: 0.131 seconds
Powered by Kunena Forum