Using prevNext Modx Addon - modx

I need to display previous and next resource with tv in one parent using this addon in modx
http://modx.com/extras/package/prevnext
But there is some simple documentation, and i can see it has a lot of options, is it posible that someone can show me simple example of tlp.

https://modx.com/extras/package/prevnext shows clear description and parameters.
[[!prevNext]]

Use pdoNeighbors (part of pdoTools) - it has better documentation and examples.

Related

Can I display multiselect list items as onordered list using Razor?

I was wondering if this is possible with razor syntax (I have found that there are other ways that utilize jquery). Please point me in the right direction if you know one. I am working on a MVC 5 project.
Thanks.
Yes, this is possible by creating custom html helper methods. Refer this little example which would be helpful.
Video version of tutorial

Modx(Revolution) search function for FAQs

I'm trying to implement a search for my FAQs page. I'm using the modx extras FAQ Manager and SimpleSearch. SimpleSearch works quite well if you're searching modx resources, but the problem I've run into is how to search a database table for example the FAQ Manager table where the content is not tied to a resource. Is this possible?
I've noticed that SimpleSearch has a &customPackages property, but I can't seem to get it to work. If someone could show me an example of how to use simple search in conjunction with FAQ Manager, I would be most appreciative.
You can search in a custom package through AdvSearch with a custom queryhook: http://www.revo.wangba.fr/custom-package-dvd-shop/
and the corresponding snippet since the link doesn't seem to work: http://www.revo.wangba.fr/assets/files/advsearch/queryhook/dvdqhook.snippet.txt
I believe you can use the advanced search package to search database tables: http://rtfm.modx.com/extras/revo/advsearch

Using the Extension Library Navigator

Does anyone know of a good tutorial or YouTube video that explains how to set up and use the Navigator in the IBM Xpages Extension Library?
It is a bit confusing with all the options, types of nodes, and Select & Submit Values. Hope to find something that shows the simple way to use this tool along with some of the Advanced capabilities.
I did a quick youtube video where I show just the simplest use of it. enjoy
http://www.youtube.com/watch?v=adtyIAo3bZE
Is there anything specific you want to know?
Hopefully a good tutorial is the XPages Extension Library book. It goes into detail on all the various node types.

Google docs viewer url parameters

Is there any sort of documentation on exactly what parameters you can put in the url of Google viewer?
Originally, I thought it was just url,embedded,chrome, but I've recently come accross other funny ones like a,pagenumber, and a few others for authentication etc.
Any clues?
One I know is "chrome"
If you've got https://docs.google.com/viewer?........;chrome=true
then you see a fairly heavy UI version of that doc, however with "chrome=false" you get a compact version.
But indeed, I'd like a complete list myself!
I know this question is very old and perhaps you already solved your issue, but for anyone on the internet who might be looking for an answer...
I have been looking for this recently, following a guide I found on GitHub Gist
https://gist.github.com/tzmartin/1cf85dc3d975f94cfddc04bc0dd399be
More specifically, the option to embed a certain page of pdf using
<iframe src="https://docs.google.com/viewer?srcid=[put your file id here]&pid=explorer&efh=false&a=v&chrome=false&embedded=true" width="580px" height="480px"></iframe>
The best I could fing was this article (I suppose from a long time now)
https://weekly-geekly.github.io/articles/111647/index.html
HOWEVER, I tried modifying the attributes and the result was simply a redirect to
https://drive.google.com/file/d/[ID]/edit
https://drive.google.com/file/d/[ID]/preview or
https://drive.google.com/file/d/[ID]/view
AS OF MAY 2020, THIS SOLUTION PROBABLY DOESN'T WORK
I'm also on a quest to discover some of the parameters of the viewer.
the "chrome" parameter doesn't seem to do anything, though. Is this
supposed to be the same as embedded=true?
Parameters I know of:
url= (obviously)
embedded= (obviously)
hl= set language of UI (tooltips)
#:0.page.1 = jump to page 2 (page 1 is numbered 0) - this is unreliable and often requires a refresh after the first load,
defeating the purpose.
That said, when I use the Google Docs viewer on my site, "fit page to
screen" is the default view without any parameters. So maybe I'm
misunderstanding your question.
Source: For convenience, this is a full quote of the sole answer (it is from user k3david) to the crosspost of this question #Doc has posted to the Google support forum in 2011.
You can pass q=whatever to pass a search query to the viewer.

Bug template in Bugzilla

Is there any way to enforce a template in Bugzilla to guide users fill in bugs descriptions ?
Actually, i'd like to put some markup texts in the bug description field and avoid the creation of custom fields.
I've installed version 3.2rc1.
Indeed, just check ../enter_bug.cgi?format=guided , which forms an example of the template feature. Half the work is already done for you.
The mechansism described under 6.2.5 Particular Templates (under the section called bug/create/create.html.tmpl and bug/create/comment.txt.tmpl) works pretty well for us. Even though you say you don't want to create custom fields, adding some arbitrary HTML is easy enough.

Resources