Search found 12 matches

by sirber
Wed Aug 15, 2012 8:19 pm
Forum: CMSMS Core
Topic: [solved] bug: pretty_url and search
Replies: 4
Views: 2435

Re: bug: pretty_url and search

can be fixed by not using a reference for the event. I'll look in the SendEvent function.
by sirber
Wed Aug 15, 2012 7:27 pm
Forum: CMSMS Core
Topic: [solved] bug: pretty_url and search
Replies: 4
Views: 2435

[solved] bug: pretty_url and search

if I activate pretty_url, search doesn't work (finds no result), if I disable pretty_url, search works. config.php: $config['url_rewriting'] = 'mod_rewrite'; $config['page_extension'] = '.html'; $config['query_var'] = 'page'; .htaccess: using the one from doc/htaccess.txt using CMS Made Simple™ 1.11...
by sirber
Thu Apr 26, 2012 8:07 pm
Forum: Developers Discussion
Topic: CreateInputDropdown
Replies: 2
Views: 2360

Re: CreateInputDropdown

Thank you!
I made a small workaround on it:

Code: Select all

while ($oQs && $aRow = $oQs->FetchRow()) {
					if (isset($aData[$aRow["name"]]))
						$aRow["name"] = $aRow["name"] . "(1)";
					$aData[$aRow["name"]] = $aRow["id"];			
				}
by sirber
Thu Apr 26, 2012 8:01 pm
Forum: Developers Discussion
Topic: CreateFrontendLink and params "id"
Replies: 0
Views: 1444

CreateFrontendLink and params "id"

I get nothing:

Code: Select all

$this->CreateFrontendLink($id, $returnid, 'job_view', 'voir', array('id'=>$aRow["id"]));
I get "job_id" in the link

Code: Select all

$this->CreateFrontendLink($id, $returnid, 'job_view', 'voir', array('id'=>$aRow["job_id"]));
why?
by sirber
Thu Apr 26, 2012 7:56 pm
Forum: Developers Discussion
Topic: CreateInputDropdown
Replies: 2
Views: 2360

CreateInputDropdown

Hi! I'm creating a CMSModue->CreateInputDropdown and the html is inverted. Doc sais $items == array('key'=>'value'), but the output is inverted: array(2) { [0]=> string(0) "" [3]=> string(6) "test 2" } <select class="cms_dropdown" name="mf673fjobs"><option val...
by sirber
Wed Apr 25, 2012 5:18 pm
Forum: Developers Discussion
Topic: inline module inside {content} with a different $action?
Replies: 2
Views: 1876

Re: inline module inside {content} with a different $action?

got it!

Code: Select all

$this->smarty->assign('job_view', $this->CreateFrontendLink($id, $returnid, 'job_view', 'test'));
which makes:

Code: Select all

index.php?mact=sbCarriere,m5969d,job_view,1&m5969dreturnid=78&page=78
the template from my content page stays, only the module parts updates

win!
by sirber
Wed Apr 25, 2012 4:42 pm
Forum: Developers Discussion
Topic: inline module inside {content} with a different $action?
Replies: 2
Views: 1876

Re: inline module inside {content} with a different $action?

with JoMorg's help, I got: function SetParameters() { $this->RegisterModulePlugin(); // to be able to use {sbCarriere} instead of {cms_module sbCarriere} /* */ $this->RegisterRoute('&sbc_action=(?P<sbc_action>[a-zA-Z]+)$/'); /* Security */ $this->RestrictUnknownParams(); $this->CreateParameter('...
by sirber
Wed Apr 25, 2012 2:40 pm
Forum: The Lounge
Topic: How do I refresh a part of my website?
Replies: 1
Views: 1252

Re: How do I refresh a part of my website?

you can ajax your server with jquery and update only ther selected parts (using a selector in javascript) and update the needed part.

http://api.jquery.com/category/selectors/

$("#mydiv").html("new content");
by sirber
Wed Apr 25, 2012 1:43 pm
Forum: Developers Discussion
Topic: inline module inside {content} with a different $action?
Replies: 2
Views: 1876

inline module inside {content} with a different $action?

Hi! I have a template with {content}, a content page with a layout which in it load a module using {cms_module module='sbCarriere'}. The module loads and it works. In DoAction(), $action == "default". I'd like to use the same content page with a different action for the module. I tryed: ?p...
by sirber
Wed Apr 25, 2012 12:29 pm
Forum: Developers Discussion
Topic: [Solved] Making new module using tuto / adodblite error
Replies: 2
Views: 2027

Re: NMaking new module using tuto / adodblite error

Code: Select all

$oDb = $gCms->GetDb();
worked. thanks!
by sirber
Tue Apr 24, 2012 2:45 pm
Forum: Developers Discussion
Topic: [Solved] Making new module using tuto / adodblite error
Replies: 2
Views: 2027

[Solved] Making new module using tuto / adodblite error

Hi I'm fellowing this tutorial to make a new module. I'm a noob in cms/modules. In my config.php, I have: $config['dbms'] = 'mysqli'; function Install() { /* Database */ $oDb = $this->cms->db; $aTableOption = array('mysql' => 'TYPE=InnoDB'); # jobs $oTable = NewDataDictionary($oDb); $sFields = "...

Go to advanced search