Extracting some content and rollup or thumbnail image from article

Hi,
As content query web part doesn't do horizontal display, I am writing some c# code to accomplish this. I have a subsite which contains article pages with images. I am trying to extract a part of the content as a the summmary and display the associated image
at the top of the summary. Any ideas of what code I could use to accomplish this? At the moment, my code includes the following which allows me to get the name of each article page.
SPWeb oWeb = SPContext.Current.Site.OpenWeb("news2");
           oWeb.Lists.IncludeRootFolder = true;
            SPList oList = oWeb.Lists["pages"];
           SPFolder oFolder = oList.RootFolder;
           SPQuery oQuery = new SPQuery();
           oQuery.Folder = oFolder;
           SPListItemCollection collListItems = oList.GetItems(oQuery);
           foreach(SPListItem oListItem in collListItems)
               HttpContext.Current.Response.Write(oListItem.File.Name + "<BR>");
Sherazad

Hi Sherazad,
What do you mean by horizontal display?  you can create content search webpart and customize the display template and item display template to view the content in any format you want.
check the below post
http://en.share-gate.com/blog/roll-up-sharepoint-2013-sites-using-search
but instead of targeting the query to subsites target the query to your list using the managed property PATH:http://sitecollection/lists/news2/* or ListID:your_list_id 
Amr Fouad Head of Consulting Blog: http://sharepointtweaks.blogspot.com https://paper.li/amr_m_fouad/1401229504 Twitter: @amr_m_fouad Linkedin: https://www.linkedin.com/in/amrfouad

Similar Messages

  • Need some help trying to generate thumbnail images from large Jpegs

    Hello,
    I have some ActionScript 3.0 code, created with Flex that
    will load a large JPEG image (say 3000x2000 pixels) that I'm trying
    to create a 100 pixel thumbnail. I have the code working where I
    generate the thumbnail, but it's not maintaining the aspect ratio
    of the original image. It's making it square, filling in white for
    the part that doesn't fit.
    I've tried just setting the height or width of the new
    image, but that doesnt render well, either.
    To see what I'm talking about, I made a screen shot, showing
    the before image, and the rendered as thumbnail image:
    http://www.flickr.com/photos/taude/533544558/.
    Now, there's a few things important to note. I'm saving the
    thumbnail off as a JPEG. As you can see in my sample application,
    the original renders fine with the proper aspect ratio, it's when
    I'm copying the bytes off the bitmapdata object, where I need to
    specify a width and height, that the trouble starts. I've also
    tried using .contentHeight and .contentWidth and some division to
    manually specify a new bitmapdatasize, but these values seem to
    always have NaN.
    private function makeThumbnail():void{
    // create a thumbnail of 100x100 pixels of a large file
    // What I want to create is a a thumbnail with the longest
    size of the aspect
    // ratio to be 100 pixels.
    var img:Image = new Image();
    //Add this event listener because we cant copy the
    BitmapData from an
    /// image until it is loaded.
    img.addEventListener(FlexEvent.UPDATE_COMPLETE,
    imageLoaded);
    img.width=100;
    img.height=100;
    img.scaleContent=true;
    img.visible = true;
    // This is the image we want to make a thumbnail of.
    img.load("file:///C:/T5.jpg");
    img.id = "testImage";
    this.addChildAt(img, 0);
    private function imageLoaded(event:Event):void
    // Grab the bitmap image from the Input Image and
    var bmd:BitmapData =
    getBitmapDataFromUIComponent(UIComponent(event.target));
    //Render the new thumbnail in the UI to see what it looks
    theImage.source = new Bitmap(bmd); //new Bitmap(bmd);
    public static function
    getBitmapDataFromUIComponent(component:UIComponent):BitmapData
    var bmd:BitmapData = new
    BitmapData(component.width,component.height );
    bmd.draw(component);
    return bmd;

    Dev is 10gR2 and Prod is earlier version of Oracle, 10gR1.
    The schema (or table(s)) export file created by Oracle Database Control in Oracle 10gR2 is not importable into 10gR1, by default.
    Workaround.
    Use the Schema (table(s) export wizard of in the Maintenance section
    of the Oracle Database Control in ver 10R2,
    but when you get to the end of the wizard (I recall Step 5),
    show the data pump export source PL/SQL code, cut and past to editor,
    and find the variable where you can set the Oracle database version
    to your prod database version,
    then run the script from the SQL Plus prompt in 10gR2 dev,
    and this creates an Oracle 10gR1 compatible data export file.
    Then go to Prod and run the schema (table(s)) import data wizard,
    and import the export file. You will have to option to move the data
    to another schema or tablespace if required.
    Just to not run into troubles, I use the same schema and tablespace name
    in both dev and prod.
    the variable you must modify in the 10gR2 datapump export script looks like
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'ExportTableToProdJob', version => 'COMPATIBLE');
    and you must change manually to
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'ExportTableToProdJob', version => '10.1.0.1');
    This creates a 10g1.0.1 or later compatible export data file.
    You must have read/write privileges to the folder were the export data file will be created, and imported from. (Oracle Directory Object)

  • Sync some content and stream the rest.

    I have 1 itunes library on my G5 and as i have the original ATV with only the 40gig HD i was wondering if at all possible can i sync some content and stream the rest. Not sure if i have set this up correctly but i cannot achieve both. I have to swap between the synced and streamed and everytime i do this my ATV loses all synced content. If this is achieveable can someone help with setting this up. Thanx in advanced.

    Thanx for the quick reply, i have tried this on several occasions but this has not worked. Cant hurt to try again. When you refer to syncing library, this being the one in itunes and from my ATV set it to connect to itunes and once it appears under summary set it to custom sync.

  • Aperture does not recognize that there are images to be imported on an SD card. My workaround is to copy the images from the ST card to a folder and then import the images from the folder. Aperture also imports incredibly slowly after the update to 3.4

    Aperture does not recognize that there are images to be imported on an SD card. My workaround is to copy the images from the SD card to a folder and then import the images from the folder. Aperture also imports incredibly slowly after the update to 3.4

    Check your Import settings in the Import Panel, i.e. all that might exclude the image type you want to import:
    If you did not exclude any file types, and still Aperture will not import, remove your ImageCapture preferences fro your user library:
    To remove the image capture preferences:
    If Aperture is running, quit Aperture,  and log off and on again.
    Open your user library from the Finder's Go menu: Hit Command Shift G (⌘⇧G) and then type in: ~/Library/Preferences/  then hit return.
    In the window that opens remove "com.apple.ImageCapture.plist"
    and look into the subfolder "ByHost": if there are files named com.apple.ImageCapture  something .plist  remove them too.
    then try again.
    And if that still does not help, remove the Aperture preferences as well:
    ~/Library/Preferences/aperture.plist
    Regards
    Léonie
    P.S. in MacOS Lion and later the user library ~/Library is hidden by default.
    You can reveal it also  from the Finder's "Go" menu:
    Finder > Go,   then hold down the options ⌥ key, until the Library appears in the drop-down menu, select it and open the Library folder. Then go to the "Preferences".

  • Er so i bougi bought something from game the game is Deer huntht some golds and app store took money from my visa but i didn't find any golds that i bought ! please any help or how can i use the gold or restore the money? thank you

    i bought something from game the game is Deer hunter i bought some golds and app store took money from my visa but i didn't find any golds that i bought ! please any help or how can i use the gold or restore the money? thank you

    If you've been charged but not received the item then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com

  • Extract thumbnail images from a cache file without originals?

    After an external drive crash, I'm left with only the Bridge (CS2) cache files for a folder full of images. Does anyone know a way to extract the thumbnails from the cache as jpgs or some other standalone format when you *don't* have the original image files? They would be low-res, but better than nothing. Thanks in advance.

    >>says that this export technique does not work, it produces a low res screen version of the file.
    Are you certain the original files were any better?
    My preferred method of doing this works well, but it takes a few extra steps. I'd make a high-res PDF out of the PM file, then pick apart the PDF to extract the graphics. Are the graphics raster or vector? If they're raster, you can use Acrobat's Touch-up Object tool to open them in Photoshop. If they're vector, you can open the PDF in Illustrator and save out the graphics from there.
    HTH

  • ID CS5: How to include additional text into a table of contents and how to hide text from it?

    I have the following problem:
    1. I'd like to include additional Information in my table of contents which I don't want to appear in the text I refer to.
    Example: I do have a picture with a caption saying:
    picture 1: Blablabla.
    And I want to have the source of the picture as additional information in the table of contents:
    picture 1........Blablabla (source: thisandthat)........23
    Still I don't want this additional content to disappear, as soon as I update the table of contents!
    How can I achieve that?
    2. And how can I have this the other way round?
    Let's say I want the source in the caption, but not in the table of contents.
    So the caption says:
    picture1: Blablabla (source: thisandthat)
    but the table of content says:
    picture 1........Blablabla.....................23
    I was trying to achieve this by two different praograph styles in the caption. One which would be listed, and one which wouldn't be listed, but this of course resulted in always having two paragraphs in the caption, which I'd like to avoid:
    picture1: Blablabla
    (source: thisandthat)
    Any solution to this?
    Best Regards,
    Rainer Schwachsinn

    Sorry, missed the second part of the question. I think the only way to do that is to use invisible "dummy" text of some sort, and if you're going to do it for some entries, you might as will do it for all.
    One of the easiest ways is to put the text you want inthe TOC into an anchored frame attached to the actual heading in the text (so it moves along with it). Use a unique paragraph style for this text, and include this style, not the one applied to the headings inthe text, to make the TOC. I usually use a character color of red to make it satnd oout so I don't forget it's there, and the position on the page isn't really critical. Select the anchored frame, open the Attributes panel and make it non-printing. You'll see it in editing mode, the TOC will pick it up (as will variables, if required) but it will disappear on output.

  • Will 'Erase All Content and Settings' remove Apple ID from my iPad 2?

    Hi all.
    I've read that Erase All brings the iPad back to how it was when it left the shop. But I need to comfirm something 'cos here's the situation:
    1. I just sold my mum's iPad to a third party shop. All done, or so I thought.
    2. I get a text asking for my Apple password so they can format the iPad.
    3. I reply that it's not needed for Reset All/Erase All. (NOTE: No Passcode was set on iPad)
    4. I get a text today saying: "But we need to change the app store. Otherwise if any other person buy it they cannot create new account. Maybe you can come and type it. After that we can reset in front of you."
    Does the shop really need my password? I was under the impression that Erase All would do a factory reset and clear my Apple ID from the IPad too. Then the next person just sets up their own ID.
    By the way, this is not a shop I really trust which is why I'm being so cautious. Also, I don't fancy going all the way there again.
    Thanks so much in advance and sorry for the long ramble
    Andrew

    What to do if you want to sell your iPad.
    http://support.apple.com/kb/HT5661

  • Scanned black and white - no thumbnail image

    Hello all,
    I've just started to use Aperture and imported some pictures I have recently scanned. They are a mixture of colour slide and 16 bit gray scale B&W scans - all tiff scans. The colour ones all show up but the B&W images have the label, file size details but no actual image. I tried a jpeg version and they do show up.
    Had a quick search of the forum but nothing immediately jumped out.
    Kind regards,
    Ross Tinsley

    I believe that you will find the B&W scans are monochrome TIFFS (they are probably a lot smaller) and Aperture does not support them. Convert one to RGB and see if it works.
    And drop Apple a note by clicking on Aperture > Provide Aperture Feedback.

  • Print sm rows on 1st pg, some content and then rest rows for xml report/RTF

    Hi all,
    I am working in XML output Commercial Invoice format report and in that report there are shipper information and then item information, then total and then remaining item info.
    My requirement is like this,
    The Grand total of all items listed in the supplement(2nd) pages should be recorded on the first page of the Commercial Invoice.
    means...
    1) Shipper/Buyer Information port of lading .. etc info
    2) item information(if item more than 5 then remain items should be print on next page)
    3) total weight/total value/total packages/other cost...etc (multi rows)
    4) remain items information(2nd onward page)
    5) page total weight/ page total value / page total packages..
    Please suggest me, how can i generate this formate.
    Thanks in Advance!

    Hi all,
    I am working in XML output Commercial Invoice format report and in that report there are shipper information and then item information, then total and then remaining item info.
    My requirement is like this,
    The Grand total of all items listed in the supplement(2nd) pages should be recorded on the first page of the Commercial Invoice.
    means...
    1) Shipper/Buyer Information port of lading .. etc info
    2) item information(if item more than 5 then remain items should be print on next page)
    3) total weight/total value/total packages/other cost...etc (multi rows)
    4) remain items information(2nd onward page)
    5) page total weight/ page total value / page total packages..
    Please suggest me, how can i generate this formate.
    Thanks in Advance!

  • Extracting PO's and PO's item daya from SRM

    I need to get all PO's and PO's item data within SRM .
    What FM do you use ? We are using Extended Classical Scenario. Client wants a small program to execute in batch. Once all data is collected  PO's will be passed to BBP_SAPXML1_PO_SEND (SAP proxy call).
    Your help is appreciated.

    Hello,
    Do get the complete list of PO with BBP_PD_PO_GETLIST, you need to execute it twice:
    - one with BUS2012 only
    - one with BUS2012 + the parameter I_WITH_CLOSE
    If you only want to extract last modified PO GUID list, you should access directly CRMD_ORDERADM_H.
    Rgds
    Christophe

  • Dynamic content and Generating in many formats from RH HTML

    Hi,
    Working in RH HTML
    1. I was looking for info/thread which gives an idea on how
    to have one content used in many projects and chaning that on
    content would effect each project. ie. If I have a HTML project
    created and need a specific topic to display another topic/html
    file outside that project, how can I do this? And also when I
    change anything in the master topic/html it should effect all other
    projects were am using this file. OR if this is not possible how
    can I get another topic/html file to display in a different
    project?
    2. I generated my HTML project into many formats e.g.
    PDF,WORD,HTML,WEBHELP and so on.
    Am using a template (.htt ) to add Header and Footer to all
    the topics in the project. But when I go and view the pdf,word file
    the header and footer is not there. Though I can see this header
    and footer in the .chm file created
    How can I make this header and footer visible in the pdf,word
    files?
    Thx
    Kewal

    Take a look at the topics on Customising | Terminology and
    Printing on my sites. It covers what can be done.
    In short there are ways of getting the same info into more
    than one topic in one project but not more than one. However, the
    drawbacks may not suit.
    You will lose headers and footers when you generate printed
    output.

  • NCS Prime prompting for login and password after re-imaging from dvd

    Dear All,
    I did a re-imaging on NCS prime after which I'm getting the below error
    Please help me as to what could be the reason for this error...
    Please type 'setup' to configure the appliance
    localhost.localdomain login: Setup
    Password: 
    Regards,
    Waseq Mohammed

    Re-imaging was not successful try this process:
    Restoring the NCS Database
    If you are restoring the NCS database in a high availability environment, see the "Restoring the NCS Database in a High Availability Environment" section. To restore the NCS database from a backup file. follow these steps:
    Step 1 To view all local repository backups, use the below command:
    show repository backup_repo
    Note If possible, stop all NCS user interfaces to stabilize the database.
    Step 2 Manually shutdown the platform as root.
    Step 3 Using the CLI, perform one of the following:
    •Restore the appliance and application backup by entering the following command:
    restore testbackup-yymmdd-xxxx.tar.gpg repository backup_repo
    •Restore only the application backup by entering the following command:
    restore testbackup-yymmdd-xxxx.tar.gpg repository backup_repo application NCS
    Step 4 Click Yes if a message appears indicating that NCS is running and needs to be shut down.
    Note If the restore process shuts down NCS, a restart is attempted after a successful restore. The appliance will then restart and you will have to again login and restart the dbserver, and the platform manually as root (make sure you do not start with dbclean, else you will loose your recently restored data).
    The CLI displays messages indicating that the NCS database is being restored.

  • Cut and Paste part of image from Photoshop to .csv template

    Hi all,
    I have my own javascript to determine which portion(coordinates) of an image i wish to cut.
    But what codes can i add to my javascript to paste the image into an excel(.csv) template that i've prepared on the desktop?
    And if the above is possible, how then to control which row/column in the excel(.csv) will the image be pasted in?
    This is because the excel(.csv) is a Template, thus i will need the image to be pasted only in certain row/column...
    Can someone help me?
    Thanks so much in advance.

    Very strange, I created the relevant folders and it all seems to work ok here, so don't know what's gone wrong?
    #target photoshop
    function main(){
    if(!documents.length) return;
    var paper_no=900;
    var Excel = File("~/desktop/myfolder/records/"+Number(paper_no)+".xls");
    var Cell ="C22";
    if(!Excel.exists){
        alert("SpreadSheet does not exist!");
        return;
    try{
    var SB = app.activeDocument.selection.bounds;
    }catch(e){return;}
    app.activeDocument.selection.copy();
    var Width = SB[2].as('px') - SB[0].as('px');
    var Height = SB[3].as('px') - SB[1].as('px');
    var doc = app.documents.add(UnitValue(Width,'px'),UnitValue(Height,'px'),72);
    app.activeDocument.paste();
    doc.flatten();
    var tmpFile = File(Folder.temp +"/deleteMe.jpg");
    if(tmpFile.exists) tmpFile.remove();
    SaveForWeb(tmpFile,60);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    var VBS = File(Folder.temp +"/VBS.vbs");
    VBS.open('w');
    VBS.writeln('Set objExcel = CreateObject("Excel.Application")');
    VBS.writeln('Set objWorkbook = objExcel.Workbooks.Open("'+decodeURI(Excel.fsName)+'")');
    VBS.writeln('objExcel.Visible = false');
    VBS.writeln('Set mypic = objWorkbook.ActiveSheet.Pictures.Insert("'+decodeURI(tmpFile.fsName)+'")');
    VBS.writeln('mypic.Top = objWorkbook.ActiveSheet.Range("'+Cell+'").Top');
    VBS.writeln('mypic.Left = objWorkbook.ActiveSheet.Range("'+Cell+'").Left');
    VBS.writeln('mypic.Width = objWorkbook.ActiveSheet.Range("'+Cell+'").Width');
    VBS.writeln('mypic.Height = objWorkbook.ActiveSheet.Range("'+Cell+'").Height');
    VBS.writeln('objExcel.ActiveWorkBook.Close True');
    VBS.close();
    VBS.execute();
    main();
    function SaveForWeb(saveFile,jpegQuality) {
    var sfwOptions = new ExportOptionsSaveForWeb();
       sfwOptions.format = SaveDocumentType.JPEG;
       sfwOptions.includeProfile = false;
       sfwOptions.interlaced = 0;
       sfwOptions.optimized = true;
       sfwOptions.quality = jpegQuality;
    activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);

  • How can i disable some text and item in the reports from printing

    i have a requirment to prepare a report for cheque printing on a formatted cheque paper..so i want the data should be printed in the paper not the whole thing..how can i do this...
    it is like this
    Name:- <coming from database>
    Address :-
    Rs :-
    in printing i need only the data not Name,Address and Rs headings..
    plz help me out??

    Hi,
    The usual method to influence whether an item should be printed or not is to adjust the function which lies underneath the item (simply return FALSE when you don't need it. You can also adjust the input and then return TRUE). I hope this will help you to solve your problem.
    Regards,
    Vincent ([email protected])

Maybe you are looking for

  • Index rules in oracle text and query using matches

    Dear All, I would like to ask about rules and matches function in oracle text. I followed an example in oracle text application developer's guide. I have a rule table like this : 1 oracle 2 larry or ellison 3 oracle and text 4 market share then, I cr

  • ITunes download corrupted...now what?

    I downloaded the second season of Downton Abbey; one episode was corrupted.  How do I ask iTunes to resend episode 7?  Thanks!

  • ITunes Recognizing iPod Shuffle As iPod

    My wife has a iPod Nano that has synced without problems with iTunes. She recently purchased me a iPod Shuffle which had difficulty syncing with iTunes, but did eventually sync. After a few weeks, iTunes would not recognize it any longer and kept pro

  • Help, I need assistance in organizing all my projects

    Help! I have iMovie and iDVD files all over my external and internal hard drives. I have: - old iMovie files from earlier version of iMovie with .rcproject extensions - old iMovie files with iMovieProject extensions - old iMovie files with iMovie2Pro

  • Ask About Joining CWMS 2.0 Meeting

    Hi all, I just want to ask, can i join CWMS 2.0 meeting 15 minutes before the meeting started? because in the webex cloud, we can set the time that we can join before the meeting started Thanks for your help. Regards, Helmi