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 / Support / AdsManager Support / Edit "Search fields"

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.

Edit "Search fields"

More
12 years 3 months ago #6151 by damir
Edit "Search fields" was created by damir
The file edit/tmpl/default.php you can comment looping through all the fields and specify only the fields you need. eg
echo $ this-> field-> showFieldForm ($ this-> fields , $ this-> content, $ this-> default);
When the fields when creating a lot of ads, it helps make the creation page ads more compact and clear, ungroup fields by tabs.

The file search/tmpl/default.php I want to do the same. Now I have a looping through huge displays a list of fields on which you can search that inconvenience users. All these fields are required and can be sorted into blocks of divas, but I did not - when commenting cycle and which provides direct access to a
$ this-> field-> showFieldSearch ($ this-> searchfields , $ this-> catid, null);
Error displayed.
Help create a valid request.
The following user(s) said Thank You: adarr
More
12 years 3 months ago #6171 by loic
Replied by loic on topic Edit "Search fields"
Hello,

Could you give us the error you get ?

Best Regards.
The following user(s) said Thank You: adarr
More
12 years 3 months ago #6178 by damir
Replied by damir on topic Edit "Search fields"
instead
<?php
foreach($this->searchfields as $fsearch) {
$title = $this->field->showFieldTitle($this->catid,$fsearch);
echo "<div id='tr_".$fsearch->name."'><div>".htmlspecialchars($title)."</div><div>";
$this->field->showFieldSearch($fsearch,$this->catid,null);
echo "</div></div>";
}
$this->field->showFieldSearch($this->searchfields,$this->catid,null);

?>

introduce
<?php
$this->field->showFieldSearch($this->searchfields,$this->catid,null);
?>

browser displays
Категория and a list of categories on white screen. Template Joomla not loaded.
The following user(s) said Thank You: adarr
More
12 years 3 months ago - 12 years 3 months ago #6181 by Sharasx
Replied by Sharasx on topic Edit "Search fields"
hi. how to make a text box name to be inside the box and not before?( advance search)
Attachments:
Last edit: 12 years 3 months ago by Sharasx.
The following user(s) said Thank You: adarr
More
12 years 3 months ago #6190 by damir
Replied by damir on topic Edit "Search fields"
I do not know. Waiting for an answer from the support.
The following user(s) said Thank You: adarr
More
12 years 3 months ago #6208 by loic
Replied by loic on topic Edit "Search fields"
Hello,

The module works differently than the edit page.

In order to display the field you want, you need the loop. But you are free to add a condition to display only the field you need.

For example, if you want to display a field called 'ad_headline', you will need to do things like this :
foreach($simple_fields as $fsearch) {
    if($fsearch->name == 'ad_phone'){
        $title = $field->showFieldTitle($catid,$fsearch);
	echo htmlspecialchars($title);
        $field->showFieldSearch($fsearch,$catid,$defaultvalues);
    }
}

Of course, the field you want to display in the search module must be set to searchable first.

And for Sharasx, please create a new topic if you have a question.

Best Regards.
The following user(s) said Thank You: Sharasx, adarr
Time to create page: 0.072 seconds
Powered by Kunena Forum