orionjs / orioncms

[Old] Orion is an open source framework built on Meteor that makes complex as well as simple apps possible with minimal effort.
http://orionjs.org
MIT License
715 stars 129 forks source link

Enhancement request: make an option to declare a normal Meteor collection #395

Closed Ajaxsoap closed 8 years ago

Ajaxsoap commented 8 years ago

Hi @nicolaslopezj,

From the topic itself, I would like to have an option to declare a normal meteor collection or set an option to create a collection that is not intended to display on the sidebar as links like client only collection, collection that the view is integrated to the view of another collection, collection that doesn't need tabular.

I have an open thread on the forum for further details.

Thanks and more power!

Ajaxsoap commented 8 years ago

Hi @nicolaslopezj ,

I have an idea of a PR but I don't know how to do it.

My idea is making the title optional, if no title, hide it in on side bar else appear on the sidebar.

or orion.links.remove("collectionName");

nicolaslopezj commented 8 years ago

orion.links behave like a local collection. If a link doesnt have a index attribute, it wont show, so you can update the local document

Ajaxsoap commented 8 years ago

Thanks @nicolaslopezj !

How do I remove a collection from the sidebar?

orion.links.add {
    index: 
    identifer: "123"
    title: "Projects"
  }

Where should I put this code? inside onCreated ?

Ajaxsoap commented 8 years ago

I already figure it out.

Thanks @nicolaslopezj for the hard work.