,
im try to create an view and having troubles.
im trying to create a row of Images with ngFor , so i dont know the exec number of images that will apper on the screen but in need it to look like that ,
in case of 3 photos it will be in one line but when the fourth Image will added it will go down to a new line
thank you
that problem can be resolve with warpLayout
WrapLayout
Related
I have a project with a database
then i do dd on controller while doing model::get() or model::all()
enter image description here
then i get the result i want like in the first picture
the problem starts from when i create a new project with the same database and the same code, i do model::all() or model::get() but what i get is the result like in the second picture, what should i do to get results like my first project?enter image description here
and thats my problem, how can i get output like picture one? sorry for my bad i am a newbie
try this
model::all()->toArray();
I'm scraping image urls and text from tables and I want to know how to collect nothing (or at least no url) for a cell whose image is missing. I don't want to remove any rows since I want to reproduce the table as is. Here's an example of a table with missing images and the html to the right.
I'm using the following in google sheets:
=importxml(D1,"//div[#class='colsx immagine']/img/#src")
=importxml(D1,"//div[#class='coldx domanda']")
which works fine to get the image urls and text for each row if the images are all there (as on this page). But if any images are missing then I collect an url for the (wrong) image below in the table. I want to skip url collection if there's no img url.
I just starting to learn xpath, and I suspect I need to use the | or not to fix this, but need some help because nothing I've tried works.
Thanks
You can solve this by adding another predicate. So assuming that you want to list the URLs of the //div[#class='lista'] with an image, you can use
=importxml(D1,"//div[#class='lista' and div/img]/div[#class='colsx immagine']")
=importxml(D1,"//div[#class='lista' and div/img]/div[#class='coldx domanda']")
=importxml(D1,"//div[#class='lista' and div/img]/div[#class='coldx risposta active gius']")
and so on.
This should skip all class 'lista' div's without an img tag and select its URLs.
I'm new at Laravel and I'm testing at the moment. And its actually really nice. But now I've got a problem and I don't have a clue how to solve it.
What I did:
Installed Laravel 5.7
Installed Voyager
Installed Voyager Frontend
Installed Voyager Blocks
Now i created my own Block. I want to create an block to display an dynamic slider.
Inside my Page in my Backend it looks actually like this:
http://nimb.ws/gp1WkX
For this my Code inside the /config/page-blocks.php looks like: http://nimb.ws/XVzyCN And you can see i create 6 instances (manually) inside the slider block.
My Output inside the "dynamic_slider.blade.php" look like this: http://nimb.ws/N8ovGD and there is nothing dynamical.
What I want to do:
I want only one instance in my block. With my Image, Title, Subtitle
and Link for my Slide. If an image is uploaded for the first slide -
a second instance reveal and i can add a second slide. And so on...
I want to output my slides inside an foreach loop on my
dynamic_slider.blade.php
I think I know how to output the loop but I cant figure out the step for my admin-block. I hope you guys can help me.
Hi I'm using symfony with ckeditor bundle to write content. But I can't find a way to insert images within ckeditor. Can someone have ever try using it ?
Insert image through CKEditor is just clicking on the 'picture' button.
But I guess you mean "upload on the server some picture, and insert them on the text.
And you should take a look to IvoryCKEditorBundle. And so, checking FMElfinderBundle, which could do what you need.
Im using play framework and rendering PDF usin rednerPDF() method.
I would like to display some part of content always be in new page.
For Example I have two tables, One table should be in first page and another table should in next page instead of continue from first page. The first table contents are dynamic and we can't sure the height of the table.
Is it possible?
Is it possible?Yes.
You said one table(first one) should be in first page,and again you said its content is dynamic.Now my question is it span over pages and in the next page you want to write second table?This is a generic scenario and what you mentioned is specific one.
You can start trying using two properties of PdfPTable setSplitLate() and setSplitRows()(just google it out for details read Itext In Action).Just keep Two table as two Rows of outer table.set those two property for inner as well as outer in some way as you want(i.e generic case/Specific case).
Another alternative way is use writeSelectedRows() method over PdfContentByte(I don't konw which Object you gonna use for manipulating pdf but you can get it from PdfWriter,*PdfStamper* by using getDirectContent/*UnderContent*/OverContent) after generating table.To use this method you have to set total width of the table so the height can be calculated by method getTotalHeight of PdfPTable.If You use this height properly you absolutely know where your table ends.But all these specific part you have to read & understand first.
With yahp you can use a special html tag to force a page break
<yahp:pb />
we can achieve this by page-break-after:always
Please refer
Alternate to PDF for dynamically generated document with page breaks