Home arrow Forum

Remository Forum

 


dalbeck

Karma: 0  
Create a Menu Link Directly to Remository Containe - 2008/03/25 15:09 Hello,

I was wondering if it is possible to create a menu link to go directly inside one of my remository parent conatiners? If so could someone help me out with accomplishing this? Thank you so much.
  | | Sorry, you do not currently have permission to write here.
mjung

Karma: 0  
Re:Create a Menu Link Directly to Remository Conta - 2008/04/10 22:50 Indeed that would be great. I made this a feature request today.
  | | Sorry, you do not currently have permission to write here.
tony121

Karma: -2  
Re:Create a Menu Link Directly to Remository Conta - 2008/04/11 00:16 Can't this be done with the standard Joomla Menu options. Create a Menu Link, link it to the destination, set it to open in parent window, and publish it.

Maybe I'm missing something.

An example can be seen at 121Books.org. The links on the left are Category titles that navigate to the Categories.
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:Create a Menu Link Directly to Remository Conta - 2008/04/11 15:47 You're quite right Tony, although there could be issues if there is no menu link to Remository at all, as it would not then acquire an Itemid.

I've suggested code for handling the case of a single container that is automatically entered in another post.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
maddunr

Karma: 0  
Re:Create a Menu Link Directly to Remository Conta - 2009/02/15 22:01 Martin,

As you've mentioned, that code modification only helps when there's just one container.

Is there a way (or a module) to link to each container? I would like to use this on non-remos pages.

Thanks,
V
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:Create a Menu Link Directly to Remository Conta - 2009/02/16 17:25 In general, you can simply go to any page of your site and make a note of the URI (displayed in the browser near the top of the page). Then you can create a URI type menu entry using the information you have obtained, and giving it whatever name you want. Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
maddunr

Karma: 0  
Re:Create a Menu Link Directly to Remository Conta - 2009/02/16 18:10 Thanks for pointing me in this direction again It looks like things have improved with J1.5. I remember the good old days when the Itemid in the URI used to create such havoc when I used it in url links. It was always a dilemma - if I used Itemid, then it wouldn't show up in module locations, and if I didn't the parent menu item wouldn't be active.

Now I've created the categories in a separate menu with the parent menu item's Itemid, and it WORKS!!

- V
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:Create a Menu Link Directly to Remository Conta - 2009/02/18 09:46 I'm not sure it is as simple as that, Itemid can still create problems, I believe. But it's good if you can do what you want Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
maddunr

Karma: 0  
Re:Create a Menu Link Directly to Remository Conta - 2009/02/18 15:39 Yes. I agree with you.

It would be a nice feature addition to specify category id when creating a menu link on J1.5.

Thanks,
V
  | | Sorry, you do not currently have permission to write here.
emeyer

Karma: 0  
Re:Create a Menu Link Directly to Remository Conta - 2009/04/07 07:31 I tried adding an 'external menu link' to a category page. The path and select works, but something is appending an additional menu itemid to the end of the uri which overides any itemid I set in the url, so the active menu always ends up being the main remository page.

I have joomla 1.5.10 and extended menu installed. I disabled sef to find the menu uris.

I was able to get this working for docman, but not for remository. Eveyrthing else about Remository has been much easier than for docman, I hastily ad!
http://heavensonearth.com
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:Create a Menu Link Directly to Remository Conta - 2009/04/22 12:03 I'd need to be able to reproduce your problem to make any progress with this. Can you provide more details and links to your site? Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
emeyer

Karma: 0  
Re:Create a Menu Link Directly to Remository Conta - 2009/04/28 01:00 The menu links highlight correctly if the page is selected from the menu, but if the page is selected from links in the content, the active menu item is always the component link. It may be an unusual case because the site has extended menu for all its menus. Extended menu tries to guess itemids if they are not specified. I couldn't know if this is true for standard Joomla menus, I only have extended menu menus.

I don't have any submenus to containers on a public site, the submenus to containers are on localhost only.

I'm looking into hardcoding some itemids into the remository php, and if I get it working I'll share the code.
http://heavensonearth.com
  | | Sorry, you do not currently have permission to write here.
emeyer

Karma: 0  
Re:Create a Menu Link Directly to Remository Conta - 2009/04/28 03:58 ...what I have so far is a change for com_remository/p-classes/remositoryRepository.pgp, as follows:

public function RemositoryRawFunctionURL ($func=null, $idparm=null, $os=null, $orderby=null, $item=null, $fname=null ) {
$interface = remositoryInterface::getInstance();
$database = $interface->getDB();
$repnum = max(1, remositoryRepository::getParam($_REQUEST, 'repnum', 1));

/*** CHANGE FOR MANUAL CODING OF CONTAINER ITEMIDS *****/
// $url .= $item ? $item : $this->getItemid(); //replace with:
$url .= $item ? $item : $this->getCatItemid($idparm);
/****END CHANGE****/

if (1 < $repnum) $url = 'index.php?option=com_remository&repnum='.$repnum;
if (!in_array($os,array('win','mac','linux','all'))) $os = null;
if ($os AND $os != 'All') $url .= '&os='.$os;
if ($orderby) $url .= '&orderby='.$orderby;
if ($func == 'download') $url .= '&chk='.$this->makeCheck($idparm,$func).'&no_html=1';
elseif ($func == 'rss') $url .= '&no_html=1';
$thisfunc = remositoryRepository::getParam($_REQUEST, 'func');
if ('direct' == substr($thisfunc,0,6)) {
if (!$func) $url .= '&func=directlist';
$url .= '&indextype=2';
}
return $url;
}
/*** FUNCTION FOR MANUAL CODING OF CONTAINER ITEMIDS *****/
public function getCatItemid($idparm){
switch ($idparm){
case 1: // 1st container
return 297; //Itemid for first container
case 5: // 2nd container....
return 231;//Itemid for 2nd container
default:
return $this->getItemid();
}
}
/**** END FUNCTION ****/
http://heavensonearth.com
  | | Sorry, you do not currently have permission to write here.
digin

Karma: 0  
Re:Create a Menu Link Directly to Remository Conta - 2009/07/03 16:07 Does the solution of the previous item work in the latest verion of Remository (3.52)?
  | | Sorry, you do not currently have permission to write here.
liquidcrystalman

Karma: 0  
Re:Create a Menu Link Directly to Remository Conta - 2009/09/22 09:57 It does for me digin
meditation and yoga
  | | Sorry, you do not currently have permission to write here.

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 7 guest online