unsolved problems - Module Company Directory

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Sakrow
Forum Members
Forum Members
Posts: 23
Joined: Wed Jun 23, 2010 7:05 pm

unsolved problems - Module Company Directory

Post by Sakrow »

Hi all.

warning, my English is very bad, I will try to express myself best

I've been looking for a long time how to solve several problems I have with the module CompanyDirectory, but I could not solve this.

Situation: I'm using CompanyDirectory a guide to neighborhood shops

Versions:
Linux debian 6
MySQL - 5.1.66
PHP - 5.3.3-7
CMSMS - 1.11.5 "Puerto Ayora"
CompanyDirectory - 1.17.5
JQueryTools - 1.2.5
CGSimpleSmarty - 1.6.1
CGExtensions - 1.32.4
Using Pretty URLs

--------------------------------

Problem 1: Find shops with a search box.

Possible solution: Use this - {search search_method = "post" SearchText = "What do you look for in Vallecas?" submit = "Search" modules = "CompanyDirectory"}

If I remove "modules" appear searches. Only YouTubePlayer module.

I've seen in helping CompanyDirectory that there is a template search, but I could not make it work, when I hit the code page is not loaded, stays in

Code: Select all

  <div class="row">
    <p class="col30">{$mod->Lang('name')}</p>
    <p class="col70">
And nothing appears more

------------------------------

Problem 2: sitemap.xml generated with "SiteMapMadeSimple" and do not seem to shops CompanyDirectory module

Possible solution: I tried to create it by hand, but the people who will use the site, do not have knowledge to do

I got something like this:
{CompanyDirectory summarytemplate="sitemap"}

Code: Select all

{if isset($messages)}
<div class="CompanyDirectoryMessage">
 <ul>
   {foreach from=$messages item='one'}
     <li>{$one}</li>
   {/foreach}
 </ul>
</div>
{/if}

{if isset($errors)}
<div class="CompanyDirectoryError">
 <ul>
   {foreach from=$errors item='one'}
     <li>{$one}</li>
   {/foreach}
 </ul>
</div>
{/if}

{if isset($items)}
  {if isset($firstlink) || isset($nextlink)}
  <div>
  {if isset($firstlink)}{$firstlink}&nbsp;{$prevlink}&nbsp;&nbsp;{/if}{$pagetext} {$curpage} {$oftext} {$pagecount}
  {if isset($nextlink)}&nbsp;&nbsp;{$nextlink}&nbsp;{$lastlink}{/if}
  </div>
  {/if}

  {foreach from=$items item=entry}
<url>
<loc>{$entry->detail_url}</loc>
<lastmod>{current_date format="%Y-%m-%d"}</lastmod>
<priority>0.8</priority>
<changefreq>yearly</changefreq>
</url>
  {/foreach}
{/if}
Then, I tried to include it in the module SitemapMadeSimple

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
{* Note: Web crawlers usually discover pages from links within the site and from other sites. Sitemaps supplement this data to allow crawlers that support Sitemaps to pick up all URLs in the Sitemap and learn about those URLs using the associated metadata.  It is not strictly necessary to use a sitemap on a well designed site.  This is just an aide to the web crawlers in finding data from your website. *}
<urlset xmlns="http://www.google.com/schemas/sitemap/0.9"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.9
	http://www.google.com/schemas/sitemap/0.9/sitemap.xsd">{strip}

{foreach from=$output item='page'}
<url>
  <loc>{$page->url}</loc>
  <lastmod>{$page->date|date_format:"%Y-%m-%d"}</lastmod>
  <priority>{$page->priority}</priority>
  <changefreq>{$page->frequency}</changefreq>
</url>
{/foreach}

{/strip}</urlset>
{CompanyDirectory summarytemplate="sitemap"}
But do not write in sitemap

I hope someone can help me solve these problems or at least to find some alternative solution.

If you need more information please ask.

thank you very much
Post Reply

Return to “Modules/Add-Ons”