Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aki 43 posts 214 karma points
    Sep 29, 2015 @ 11:08
    Aki
    0

    customizing or source, for Fanoe starter kit. ?

    im currentley working with Fanoe and trying to add a new row type..

    I can get the Json (grid.editors.config.js) and i can get icon and App/plugins pages to work (App_plugins/Editors/Render and Views)

    i dont know where to change things, in the Backend so help would be appriciated..

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Sep 29, 2015 @ 11:31
    Dennis Aaen
    101

    Hi Aki,

    If you have access to the Umbraco TV website, then I think this is a good place to start. http://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/grid-layouts

    Another one is the documentation of the grid layout data type. https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/grid-layout

    Hope this helps,

    /Dennis

  • Aki 43 posts 214 karma points
    Sep 30, 2015 @ 09:00
    Aki
    0

    Uhh! nice thanks..

    Most of what i were looking fore..

    the Manifest and the folder structure is nice.. and i do have some AngularJS experience so its prefect..

    Just one more thing..

    im looking for a way to select a Content element and get all the childs listed in the editor..

    I have a Content document called Products and i want the user to be able to select which product should be featured on the page

    as i understand it a Json is generated from the Row elements and then displayed on the front end.. if im not mistaken if a product is added after the json was build that product is not shown ? if thats is the case this approched is not the way i should go about the problem.. or is it more dynamic than that?

    Thanks again for the link..

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Sep 30, 2015 @ 09:15
    Dennis Aaen
    0

    Hi Aki,

    If I understand your question correctly then you want to select a item using the content picker https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/content-picker

    Then you make a foreach loop that loop though each of the children to the picked item. This can you do in a partial view macro file and then add this macro to the grid layout. http://umbraco.tv/videos/umbraco-v7/implementor/working-with-umbraco-data/macros/using-macros-in-the-rte/

    Hope this helps,

    /Dennis

  • Aki 43 posts 214 karma points
    Sep 30, 2015 @ 11:16
    Aki
    0

    Hi again..

    im still a bit confused.. but im getting there..

    Found a Content picker In the forum that works in the new umbraco way ;)

    its called http://www.love2datesingles.com/media/65352/umbraco-custom-grid-editor.zip

    but you suggested to make a Macro to insert in stead.. how the content picker works i have yet to figure out ;)

    As this is dragging out ill give you points,, but i hope you can help me a bit more in this thread..

  • Aki 43 posts 214 karma points
    Sep 30, 2015 @ 12:34
    Aki
    0

    the For loop to display items i want to be handled in the backoffice.. but im not sure its possible..

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 01, 2015 @ 06:43
    Dennis Aaen
    0

    Hi Aki,

    What I think you can do is to add the content picker to the document type where you want the user to pick the product category. http://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/document-types/properties/

    The you can create a partial macro file (Developer section). This partial macro file should contain, something like this code.

    @{
      if (CurrentPage.HasValue("contentPicker")){
        var node = Umbraco.Content(CurrentPage.contentPicker);
            foreach(child in node.Children.Where("Visible")){
                @child.Name
            }
      }
    }
    

    Where contetPicker is the alias of your property.

    Hope this helps,

    /Dennis

  • Aki 43 posts 214 karma points
    Oct 01, 2015 @ 07:51
    Aki
    0

    Hi again Dennis.

    yes and no the thing is we want to use the grid system to get a wysiwyg view of the page in the backoffice..

    but as i can read i cant get cshtml to render in the backoffice in the grid view.. and i could not get the Property id to get the cshtml to render the content based on ids on the front end..

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
    //Getting the Model.value.id Property form the Json is fine
    
    <pre>Game id @Model.value.id</pre>
    //and i can see the Content id.. now i want to read the Id:
    //this is where Things break for me.. 
    @var page = @umbraco.content(@Model.value.id).children();
    //Im not sure what to import to make the umbraco.Content
    //part work from the cshtml within the Grid editor
    

    the only possibility i can see is to expose the content list in a service so that i can access the properties in Angular...

    Again thanks for your guidance... ill look for a solution have a nice day Aki :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies