[solved] Best approach to listing store locations...
-
point4design
- Forum Members

- Posts: 68
- Joined: Wed Aug 15, 2007 8:11 pm
[solved] Best approach to listing store locations...
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.
Last edited by point4design on Fri Nov 16, 2007 1:57 am, edited 1 time in total.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Best approach to listing store locations...
Use the CompanyDirectory module, and the SimpleGoogleMap module.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
point4design
- Forum Members

- Posts: 68
- Joined: Wed Aug 15, 2007 8:11 pm
Re: Best approach to listing store locations...
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?
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?
-
Pierre M.
Re: Best approach to listing store locations...
Hello,
BTW, have you read the help of Module Manager ?
Pierre M.
use wget or dillo or firefox to do downloading.point4design wrote: I try to download the files through dreamweaver
BTW, have you read the help of Module Manager ?
Pierre M.
Re: Best approach to listing store locations...
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.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?
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.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
-
point4design
- Forum Members

- Posts: 68
- Joined: Wed Aug 15, 2007 8:11 pm
Re: [Solved] Best approach to listing store locations...
Thanks for your help everyone. Changing the mask to give permissions is what did the trick. I can download the files now.
-
point4design
- Forum Members

- Posts: 68
- Joined: Wed Aug 15, 2007 8:11 pm
Re: Best approach to listing store locations...
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?
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?
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Best approach to listing store locations...
use the {cycle} smarty plugin. see the manual at http://smarty.php.net/manual/en
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Best approach to listing store locations...
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: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?
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>
Last edited by kermit on Fri Nov 16, 2007 12:47 am, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Best approach to listing store locations...
I use {cycle values="row1,row2" assign="row"} (or something like that) in alot of my templates. inside the foreach loops.
it works great.
it works great.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
point4design
- Forum Members

- Posts: 68
- Joined: Wed Aug 15, 2007 8:11 pm
Re: Best approach to listing store locations...
{cycle} worked perfect! Thanks again!
