Page 1 of 1
[solved] Best approach to listing store locations...
Posted: Wed Nov 14, 2007 12:22 am
by point4design
I'm looking for advice on the best way to setup a 'store location' listing that would look/function like the image I have attached. Please let me know if you have any advice on setting this up.
Re: Best approach to listing store locations...
Posted: Wed Nov 14, 2007 12:48 am
by calguy1000
Use the CompanyDirectory module, and the SimpleGoogleMap module.
Re: Best approach to listing store locations...
Posted: Wed Nov 14, 2007 1:48 am
by point4design
Thank you! I think those will work.
One more question -- I want to make a couple changes to the company directory module. But when I try to download the files through dreamweaver it says I don't have the correct permissions. Have you ever seen this before? How do I download modules that are installed via the CMS?
Re: Best approach to listing store locations...
Posted: Wed Nov 14, 2007 10:36 pm
by Pierre M.
Hello,
point4design wrote:
I try to download the files through dreamweaver
use wget or dillo or firefox to do downloading.
BTW, have you read the help of Module Manager ?
Pierre M.
Re: Best approach to listing store locations...
Posted: Thu Nov 15, 2007 2:58 am
by kermit
point4design wrote:
Thank you! I think those will work.
One more question -- I want to make a couple changes to the company directory module. But when I try to download the files through dreamweaver it says I don't have the correct permissions. Have you ever seen this before? How do I download modules that are installed via the CMS?
if php runs as the webserver user; then that user, and not your hosting account, will "own" the files belonging to third-party modules; and depending upon the umask setting at the time of the install, your user account may or may not have read or write access to those files.
there are a number of ways to correct or get-around this issue, here's a few:
1) remove all added modules, upload the modules' directories via ftp, then reinstall the modules; that way your user has ownership of them (removal later via cmsms admin panel won't work unless you also chmod those files and directories so webserver has write access);
2) remove all modules, reconfigure cmsms umask so that both webserver and your user have read/write access to module files upon their reinstall;
3) move to an environment where php runs as your user instead of the webserver user;
4) have your host chown the existing module files to your user, then chmod their permissions accordingly, so you and webserver can access (and write, if desired) them; or just chmod them so you can also access them in addition to the webserver (as owner);
5) download a tar.gz or zip of the module you'd like to change (if available), make the changes to those files locally on your PC, then use the "advanced" mode of cmsms file manager to upload the modified files to their proper locations within the cmsms install.
Re: [Solved] Best approach to listing store locations...
Posted: Thu Nov 15, 2007 8:30 pm
by point4design
Thanks for your help everyone. Changing the mask to give permissions is what did the trick. I can download the files now.
Re: Best approach to listing store locations...
Posted: Thu Nov 15, 2007 10:50 pm
by point4design
One more question if you guys have some time.
Would there be a way for me to alternate the row colors in the table as it looks in the attachment on the original post?
Re: Best approach to listing store locations...
Posted: Thu Nov 15, 2007 10:57 pm
by calguy1000
use the {cycle} smarty plugin. see the manual at
http://smarty.php.net/manual/en
Re: Best approach to listing store locations...
Posted: Fri Nov 16, 2007 12:41 am
by kermit
point4design wrote:
One more question if you guys have some time.
Would there be a way for me to alternate the row colors in the table as it looks in the attachment on the original post?
this is what i use here.. wasn't sure how {cycle} would fit into the existing loop, but had used {counter} for a few other things, so that's what i used:
Code: Select all
<dl id="directory-summary">
{counter start=0 name='rows' assign=row}
{foreach from=$items item=entry}
{counter name='rows'}
<dt{if $row is even} class="contrast"{/if}><a href="{$entry->detail_url}">{$entry->company_name}</a></dt>
<dd{if $row is even} class="contrast"{/if}>{if $entry->address ne ''}{$entry->address}{else}N/A{/if}</dd>
{/foreach}
</dl>
word of caution: while this is from a working template; it is not a default one. using a , only showing two fields per record (one and one ), and it looks sorta like
http://www.maxdesign.com.au/presentatio ... isplay.htm (source of the original formatting css used) with a background applied to every-other row.
Re: Best approach to listing store locations...
Posted: Fri Nov 16, 2007 12:47 am
by calguy1000
I use {cycle values="row1,row2" assign="row"} (or something like that) in alot of my templates. inside the foreach loops.
it works great.
Re: Best approach to listing store locations...
Posted: Fri Nov 16, 2007 1:56 am
by point4design
{cycle} worked perfect! Thanks again!