Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menu order for special pages
#3
(2013-10-01, 18:58:24)mvlcek Wrote:
(2013-10-01, 07:52:42)sarnaiz Wrote: Hi,

I am using the following in my page

(% searchresults tags:bod numWords:25 order:-menuOrder%)

but it is not working and so I have not understood how to control the sort order of my special pages with menuorder.

Works for me, e.g. (% searchresults tags="_parent_get-simple" words= order=-menuOrder %)
Are you sure, you are using the newest version (2.11) of I18N Search?

Of course "menuOrder" makes only sense, if all pages in the result list have the same parent page, otherwise you would (probably) see all the first items of all parents, then the second items, etc.

Hi Martin,

I have tried (% searchresults tags="bod" order=+menuOrder %)
http://dev.pweaveanea.org/index.php?id=p...-directors

on this page, and all kinds of permutations of this, but still no luck in getting the special pages to display in menu order. They will display the results output, but not in menuOrder. In the code I showed you before I was using : and in the second attempt I used the syntax you provided in your example. I have a special page configured to have the pwea-board-of-directors page as the parent.

(% searchresults tags="_pwea-board-of-directors_bod" words= order=-menuOrder %) did not work either. Nothing was displayed, no results.

I have the following in my special pages search for this display:
<div class="search-entry-bod-thumb"><?php if (return_special_field('thumb')=='') { echo 'Show'; }
else { echo '<img src="'; get_special_field('thumb');
echo '" />'; } ?></div>
<h5 class="search-entry-bod-title"><?php get_special_field('title','',true); ?></h5>
<?php get_special_field('designation'); ?><br />
<?php get_special_field('location'); ?><br />
<div class="search-entry-bod-email"><a href="mailto:<?php get_special_field('email','',false); ?>">
<?php get_special_field('email','',false); ?></a>&nbsp;&nbsp;&nbsp;
<?php get_special_field('phone'); ?>

</div>

<hr class="search-entry-bod-footer" />

<!--CSS-->
<style type="text/css">
.search-results { list-stype-type: none !important; }
.search-entry { margin-bottom: 5px; overflow: hidden; }
.search-entry-bod-thumb { display: block; float: left; margin: 0px 10px 5px 0px; padding: 5px; }
.search-entry-bod-title {padding: 0px; margin: 0px 0px 5px 0px; }
.search-entry-bod-email {}
.search-entry-bod-location {}
.search-entry-bod-phone {}
.search-entry-bod-footer {}
</style>

So is this a case of syntax errors on my part? I have the most recent of everything installed. I believe it's displaying in the creation order currently when calling menuOrder. The only other way I have successfully changed the order is url or reverse url.

Thank you for taking a look.
Reply


Messages In This Thread
Menu order for special pages - by sarnaiz - 2013-10-01, 07:52:42
RE: Menu order for special pages - by mvlcek - 2013-10-01, 18:58:24
RE: Menu order for special pages - by sarnaiz - 2013-10-01, 23:45:06
RE: Menu order for special pages - by mvlcek - 2013-10-02, 01:06:06
RE: Menu order for special pages - by sarnaiz - 2013-10-02, 01:28:48
RE: Menu order for special pages - by sarnaiz - 2013-10-03, 11:41:04



Users browsing this thread: 1 Guest(s)