Since we don't really have a developers forum for 3rd Party Questions, it makes it hard to do searches on dev issues, so if this is in here, someone link to it for me.
I need to write the search plugin for a module I'm developing, I've looked at several of the search functions, and think I know what needs to be done, but since there's no template search, none of them seem to be commented very well. Is there some guide to creating thes earch plug.
Also, all of them I looked at have actual HTML in the code, is there some reason they can't be done using pnHTML?
--
Home Page | Find on Facebook | Follow on Twitter
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mazdev responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 05:25 PM
- nestormateo responded to »Fillters in Clip« 06:33 AM
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 03:19 AM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Mod Dev Q: Search Integration
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Michael,
No reason they can't be in pnHTML (or pnRender). The function names are consistent across the board. The searching of modules is one area that needs some serious work as it's not the best implemented solution as it stands at the moment. However the sections module search plugin is written in pnHTML so this maybe a good start.
I'll make every effort to include a search API (as implemented in .8 ) file for the example module for the .8 release. One current area i'm working on is being able to support existing search module plugins vs .8 search API's.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
Okay, I was wondering which one would be the best to go on. Thanks Marky Mark :D
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
[code[ if (pnSecAuthAction(0, 'Sections::', "::", ACCESS_READ)) {
$output->Text("
");<font class="\"pn-normal\"" style=""text-color:$textcolor1""> "._SEARCH_SECTIONS."
}[/code]
What's the logic in this being HTML code and not pnHTML, that's what I was wondering about?
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
There's are two ways to approach pnHTML. One use the proper methods, two to set the the input mode to verbatim input and then output the HTML directly as is done in this case. It uses the text method of the pnHTML class to technically it is pnHTML. It doesn't really matter which way you do it so if your more comfortable with the proper pnHTML methods then go with that.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
Okay, just wondering since all of them I've looked at do it that way, I was wondering if there was a reason for it.
--
Home Page | Find on Facebook | Follow on Twitter
- Moderated by:
- Support
