Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Using objects within a custom fragment using a collection configuration
  
    
      
        
          
            
              
                
                  
                    
                      
                        I'm wondering if
                          you're able to offer some advice on using
                          objects within a custom fragment?
                      
                    
                  
                
              
            
          
        
      
    
  
  
    
      
        
          
            
              
                
                  
                    
                      
                        I'm trying to
                          retrieve information about an object that is
                          being listed within a collection.
                      
                    
                  
                
              
            
          
        
      
    
  
  
    
      
        
          
            
              
                
                  
                    
                      
                        I've setup the
                          configuration for this in the fragment that
                          allows editors to select a collection. I've
                          then referenced this within the HTML so that I
                          can print out the collection they've selected
                          like the below:
                      
                    
                  
                
              
            
          
        
      
    
  
  
    
      
        
          
            
              
                
                  
                    
                      
                        [#if collectionObjectList??]
                      
                    
                  
                
              
            
          
        
      
    
  
[#list collectionObjectList as item]
<p>${item}</p>
[/#list]
[/#if]
  
    
      
        
          
            
              
                
                  
                    
                      
                        
                          What I want to do
                            is access the object values, i.e
                            "Name", "URL",
                            "Campaign code".
                        
                      
                    
                  
                
              
            
          
        
      
    
  
  
    
      
        
          
            
              
                
                  
                    
                      
                        
                          Is there a way
                            for me to access this easily or do i need to
                            access the object another way?